Skip to content

Commit 18948bb

Browse files
committed
batch8
1 parent 00bab25 commit 18948bb

10 files changed

Lines changed: 88 additions & 89 deletions

File tree

official/c84482694.lua

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
--顕現する紋章
22
--Charged-Up Heraldry
3-
--Logical Nonsense
4-
--Substitute ID
3+
--scripted by Logical Nonsense
54
local s,id=GetID()
65
function s.initial_effect(c)
6+
--Special Summon 2 "Heraldic Beast" monsters from your Deck in Defense Position
77
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
89
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
910
e1:SetType(EFFECT_TYPE_ACTIVATE)
1011
e1:SetCode(EVENT_FREE_CHAIN)
@@ -14,50 +15,45 @@ function s.initial_effect(c)
1415
e1:SetOperation(s.activate)
1516
c:RegisterEffect(e1)
1617
end
17-
--Part of "Heraldry" archetype
1818
s.listed_series={SET_HERALDIC_BEAST}
19-
--Cost filter
20-
function s.cfilter(c,ft,tp)
21-
return ft>1 or (c:IsControler(tp) and c:GetSequence()<5 and ft>0)
19+
function s.spcheck(sg,tp,exg,dg)
20+
return Duel.GetMZoneCount(tp,sg)>=2
2221
end
23-
--Tribute 1 monster cost
2422
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
25-
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
26-
if chk==0 then return ft>-1 and Duel.CheckReleaseGroupCost(tp,s.cfilter,1,false,nil,nil,ft,tp) end
27-
local g=Duel.SelectReleaseGroupCost(tp,s.cfilter,1,1,false,nil,nil,ft,tp)
23+
if chk==0 then return Duel.CheckReleaseGroupCost(tp,nil,1,false,s.spcheck,nil) end
24+
local g=Duel.SelectReleaseGroupCost(tp,nil,1,1,false,s.spcheck,nil)
2825
Duel.Release(g,REASON_COST)
2926
end
30-
--Check for "Heraldic Beast" monster
3127
function s.spfilter(c,e,tp)
3228
return c:IsSetCard(SET_HERALDIC_BEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
3329
end
34-
--Activation legality
3530
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
3631
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT)
3732
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,2,nil,e,tp) end
3833
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_DECK)
3934
end
40-
--Special summon 2 "Heraldic Beast" monsters, locked into machine and psychic for extra deck
4135
function s.activate(e,tp,eg,ep,ev,re,r,rp)
42-
local e1=Effect.CreateEffect(e:GetHandler())
43-
e1:SetDescription(aux.Stringid(id,0))
36+
if Duel.GetLocationCount(tp,LOCATION_MZONE)>=2 and not or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then
37+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
38+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,2,2,nil,e,tp)
39+
if #g==2 then
40+
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
41+
end
42+
end
43+
--You cannot Special Summon monsters from the Extra Deck for the rest of this turn after this card resolves, except Psychic or Machine monsters
44+
local c=e:GetHandler()
45+
local e1=Effect.CreateEffect(c)
46+
e1:SetDescription(aux.Stringid(id,1))
4447
e1:SetType(EFFECT_TYPE_FIELD)
4548
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
4649
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
4750
e1:SetTargetRange(1,0)
4851
e1:SetTarget(s.splimit)
4952
e1:SetReset(RESET_PHASE|PHASE_END)
5053
Duel.RegisterEffect(e1,tp)
51-
if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end
52-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
53-
--lizard check
54-
aux.addTempLizardCheck(e:GetHandler(),tp,s.lizfilter)
55-
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,2,2,nil,e,tp)
56-
if #g==2 then
57-
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
58-
end
54+
--Clock Lizard check
55+
aux.addTempLizardCheck(c,tp,s.lizfilter)
5956
end
60-
--Locked into machine and psychic monsters for extra deck
6157
function s.splimit(e,c)
6258
return not c:IsRace(RACE_MACHINE|RACE_PSYCHIC) and c:IsLocation(LOCATION_EXTRA)
6359
end

official/c84813516.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local s,id=GetID()
55
function s.initial_effect(c)
66
--Special Summon itself from the hand
77
local e1=Effect.CreateEffect(c)
8-
e1:SetDescription(aux.Stringid(id,1))
8+
e1:SetDescription(aux.Stringid(id,0))
99
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
1010
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
1111
e1:SetCode(EVENT_DAMAGE_STEP_END)
@@ -79,6 +79,7 @@ function s.thcond(e,tp,eg,ep,ev,re,r,rp)
7979
end
8080
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
8181
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_GRAVE,0,1,nil) end
82+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
8283
local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_GRAVE,0,1,1,nil)
8384
Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1)
8485
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,g,1,tp,LOCATION_GRAVE)

official/c85555787.lua

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ local s,id=GetID()
55
function s.initial_effect(c)
66
--activate
77
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
89
e1:SetCategory(CATEGORY_DESTROY)
910
e1:SetType(EFFECT_TYPE_ACTIVATE)
1011
e1:SetCode(EVENT_FREE_CHAIN)
@@ -34,20 +35,21 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3435
local c=e:GetHandler()
3536
local atk=e:GetLabel()
3637
local ct=math.floor(atk/500)
38+
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_DESTROY)
3739
local g=Duel.SelectMatchingCard(1-tp,nil,1-tp,LOCATION_DECK|LOCATION_HAND,0,ct,ct,nil)
38-
if #g~=0 and Duel.Destroy(g,REASON_EFFECT)~=0 then
40+
if #g>0 and Duel.Destroy(g,REASON_EFFECT)>=0 then
3941
local og=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_GRAVE)
40-
for oc in aux.Next(og) do
42+
for tc in og:Iter() do
4143
local e1=Effect.CreateEffect(c)
4244
e1:SetType(EFFECT_TYPE_SINGLE)
4345
e1:SetCode(EFFECT_CANNOT_TRIGGER)
4446
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
4547
e1:SetRange(LOCATION_GRAVE)
4648
e1:SetReset(RESET_EVENT|RESETS_STANDARD_EXC_GRAVE|RESET_PHASE|PHASE_END)
47-
oc:RegisterEffect(e1)
49+
tc:RegisterEffect(e1)
4850
local e2=e1:Clone()
4951
e2:SetCode(EFFECT_CANNOT_ACTIVATE)
50-
oc:RegisterEffect(e2)
52+
tc:RegisterEffect(e2)
5153
end
5254
end
5355
if atk>=2000 then
@@ -84,19 +86,19 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
8486
if #hg==0 then return end
8587
Duel.ConfirmCards(1-ep,hg)
8688
local dg=hg:Filter(Card.IsMonster,nil)
87-
if Duel.Destroy(dg,REASON_EFFECT)~=0 then
89+
if Duel.Destroy(dg,REASON_EFFECT)>0 then
8890
local og=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_GRAVE)
89-
for oc in aux.Next(og) do
91+
for tc in og:Iter() do
9092
local e1=Effect.CreateEffect(c)
9193
e1:SetType(EFFECT_TYPE_SINGLE)
9294
e1:SetCode(EFFECT_CANNOT_TRIGGER)
9395
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
9496
e1:SetRange(LOCATION_GRAVE)
9597
e1:SetReset(RESET_EVENT|RESETS_STANDARD_EXC_GRAVE|RESET_PHASE|PHASE_END)
96-
oc:RegisterEffect(e1)
98+
tc:RegisterEffect(e1)
9799
local e2=e1:Clone()
98100
e2:SetCode(EFFECT_CANNOT_ACTIVATE)
99-
oc:RegisterEffect(e2)
101+
tc:RegisterEffect(e2)
100102
end
101103
end
102104
Duel.ShuffleHand(ep)

official/c85590798.lua

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
--聖なる降誕
22
--Starry Knight Ceremony
3-
--Logical Nonsense
4-
--Substitute ID
3+
--scripted by Logical Nonsense
54
local s,id=GetID()
65
function s.initial_effect(c)
76
--Activate
@@ -19,7 +18,7 @@ function s.initial_effect(c)
1918
e2:SetTarget(s.thtg)
2019
e2:SetOperation(s.thop)
2120
c:RegisterEffect(e2)
22-
--Special summon 1 level 7 LIGHT dragon monster from hand
21+
--Special Summon 1 Level 7 LIGHT Dragon monster from your hand
2322
local e3=Effect.CreateEffect(c)
2423
e3:SetDescription(aux.Stringid(id,1))
2524
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
@@ -33,32 +32,28 @@ function s.initial_effect(c)
3332
e3:SetOperation(s.spop)
3433
c:RegisterEffect(e3)
3534
end
36-
--Check for a LIGHT fairy monster
3735
function s.cfilter(c)
3836
return c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT) and not c:IsPublic() and c:IsAbleToDeck()
3937
end
40-
--Check for a level 7 LIGHT dragon monster
4138
function s.ldlv7filter(c)
4239
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_DRAGON) and c:IsLevel(7)
4340
end
4441
function s.thfilter(c)
4542
return s.ldlv7filter(c) and c:IsAbleToHand()
4643
end
47-
--Activation legality
4844
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
4945
local g=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil)
5046
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil)
5147
and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
5248
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
5349
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND)
5450
end
55-
--Reveal 1 LIGHT fairy monster, add 1 level 7 LIGHT dragon monster, place revealed monster on bottom of deck
5651
function s.thop(e,tp,eg,ep,ev,re,r,rp)
57-
local g=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil)
5852
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
5953
local rc=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND,0,1,1,nil)
6054
if #rc>0 then
6155
Duel.ConfirmCards(1-tp,rc)
56+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
6257
local sg=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil)
6358
if #sg>0 and Duel.SendtoHand(sg,nil,REASON_EFFECT)~=0 then
6459
Duel.ConfirmCards(1-tp,sg)
@@ -68,19 +63,16 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
6863
end
6964
end
7065
end
71-
--Check for a level 7 LIGHT dragon monster
7266
function s.spfilter(c,e,tp)
7367
return s.ldlv7filter(c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
7468
end
75-
--Activation legality
7669
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
7770
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
7871
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
7972
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
8073
end
81-
--Special summon 1 level 7 LIGHT dragon monster from hand
8274
function s.spop(e,tp,eg,ep,ev,re,r,rp)
83-
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not e:GetHandler():IsRelateToEffect(e) then return end
75+
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
8476
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
8577
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
8678
if #g>0 then

official/c87074380.lua

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ function s.initial_effect(c)
1111
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
1212
e1:SetValue(s.splimit)
1313
c:RegisterEffect(e1)
14-
--destroy
14+
--Destroy 1 Machine monster you control and all monsters your opponent controls with ATK less than or equal to it
1515
local e2=Effect.CreateEffect(c)
16+
e2:SetDescription(aux.Stringid(id,0))
1617
e2:SetCategory(CATEGORY_DESTROY)
1718
e2:SetHintTiming(TIMINGS_CHECK_MONSTER|TIMING_BATTLE_START)
1819
e2:SetType(EFFECT_TYPE_QUICK_O)
@@ -23,9 +24,9 @@ function s.initial_effect(c)
2324
e2:SetTarget(s.destg)
2425
e2:SetOperation(s.desop)
2526
c:RegisterEffect(e2)
26-
--special summon
27+
--Special Summon this card from your GY
2728
local e3=Effect.CreateEffect(c)
28-
e3:SetDescription(aux.Stringid(id,0))
29+
e3:SetDescription(aux.Stringid(id,1))
2930
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
3031
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
3132
e3:SetCode(EVENT_DESTROYED)
@@ -37,7 +38,7 @@ function s.initial_effect(c)
3738
e3:SetOperation(s.spop)
3839
c:RegisterEffect(e3)
3940
end
40-
s.listed_names={}
41+
s.listed_names={id}
4142
function s.splimit(e,se,sp,st)
4243
return se:IsHasType(EFFECT_TYPE_ACTIONS)
4344
end
@@ -49,10 +50,11 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
4950
local c=e:GetHandler()
5051
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.tgfilter(chkc,tp) end
5152
if chk==0 then return Duel.IsExistingTarget(s.tgfilter,tp,LOCATION_MZONE,0,1,nil,tp) end
53+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
5254
local tc=Duel.SelectTarget(tp,s.tgfilter,tp,LOCATION_MZONE,0,1,1,nil,tp):GetFirst()
5355
local dg=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsAttackBelow,tc:GetAttack()),tp,0,LOCATION_MZONE,nil)
5456
dg:AddCard(tc)
55-
Duel.SetOperationInfo(0,CATEGORY_DESTROY,dg,#dg,0,0)
57+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,dg,#dg,PLAYER_ALL,0)
5658
end
5759
function s.desop(e,tp,eg,ep,ev,re,r,rp)
5860
local tc=Duel.GetFirstTarget()
@@ -74,7 +76,8 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
7476
end
7577
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
7678
local c=e:GetHandler()
77-
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
79+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
80+
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
7881
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,LOCATION_GRAVE)
7982
end
8083
function s.spop(e,tp,eg,ep,ev,re,r,rp)

official/c8837932.lua

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
--方界曼荼羅
22
--Cubic Mandala
3+
local COUNTER_CUBIC=0x1038
34
local s,id=GetID()
45
function s.initial_effect(c)
56
--Activate
@@ -13,14 +14,14 @@ function s.initial_effect(c)
1314
e1:SetTarget(s.target)
1415
e1:SetOperation(s.activate)
1516
c:RegisterEffect(e1)
16-
--disable
17+
--While your opponent controls any of the monsters Summoned by this effect, negate any monster effects your opponent activates
1718
local e2=Effect.CreateEffect(c)
1819
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
1920
e2:SetRange(LOCATION_SZONE)
2021
e2:SetCode(EVENT_CHAIN_ACTIVATING)
2122
e2:SetOperation(s.disop)
2223
c:RegisterEffect(e2)
23-
--destroy
24+
--When the last of the monsters Summoned by this effect leaves the field, destroy this card
2425
local e3=Effect.CreateEffect(c)
2526
e3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
2627
e3:SetRange(LOCATION_SZONE)
@@ -29,24 +30,24 @@ function s.initial_effect(c)
2930
e3:SetOperation(s.desop)
3031
c:RegisterEffect(e3)
3132
end
32-
s.counter_place_list={0x1038}
33+
s.counter_place_list={COUNTER_CUBIC}
3334
s.listed_series={SET_CUBIC}
3435
function s.condition(e,tp,eg,ep,ev,re,r,rp)
3536
return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_CUBIC),tp,LOCATION_MZONE,0,1,nil)
3637
end
3738
function s.spfilter(c,e,tp,tid)
3839
return c:IsReason(REASON_DESTROY) and c:IsMonster() and c:GetTurnID()==tid
3940
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,1-tp)
40-
and Duel.IsCanAddCounter(tp,0x1038,1,c)
41+
and Duel.IsCanAddCounter(tp,COUNTER_CUBIC,1,c)
4142
end
4243
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
4344
local tid=Duel.GetTurnCount()
4445
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(1-tp) and s.spfilter(chkc,e,tp,tid) end
4546
local ft=Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)
4647
if chk==0 then return ft>0
4748
and Duel.IsExistingTarget(s.spfilter,tp,0,LOCATION_GRAVE,1,nil,e,tp,tid) end
48-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
4949
if Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then ft=1 end
50+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
5051
local g=Duel.SelectTarget(tp,s.spfilter,tp,0,LOCATION_GRAVE,1,ft,nil,e,tp,tid)
5152
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,#g,0,0)
5253
end
@@ -60,8 +61,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
6061
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
6162
sg=sg:Select(tp,ft,ft,nil)
6263
end
63-
local sc=sg:GetFirst()
64-
for sc in aux.Next(sg) do
64+
for sc in sg:Iter() do
6565
if Duel.SpecialSummonStep(sc,0,tp,1-tp,false,false,POS_FACEUP) then
6666
c:SetCardTarget(sc)
6767
local e1=Effect.CreateEffect(c)
@@ -74,29 +74,25 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
7474
end
7575
Duel.SpecialSummonComplete()
7676
local og=Duel.GetOperatedGroup()
77-
local oc=og:GetFirst()
78-
for oc in aux.Next(og) do
79-
oc:AddCounter(0x1038,1)
77+
for oc in og:Iter() do
78+
oc:AddCounter(COUNTER_CUBIC,1)
8079
local e2=Effect.CreateEffect(c)
8180
e2:SetType(EFFECT_TYPE_SINGLE)
8281
e2:SetCode(EFFECT_CANNOT_ATTACK)
83-
e2:SetCondition(s.disable)
82+
e2:SetCondition(function(e) return e:GetHandler():GetCounter(COUNTER_CUBIC)>0 end)
8483
e2:SetReset(RESET_EVENT|RESETS_STANDARD)
8584
oc:RegisterEffect(e2)
8685
local e3=e2:Clone()
8786
e3:SetCode(EFFECT_DISABLE)
8887
oc:RegisterEffect(e3)
8988
end
9089
end
91-
function s.disable(e)
92-
return e:GetHandler():GetCounter(0x1038)>0
93-
end
9490
function s.dfilter(c,g)
9591
return g:IsContains(c)
9692
end
9793
function s.disop(e,tp,eg,ep,ev,re,r,rp)
9894
local g=e:GetHandler():GetCardTarget()
99-
if re:IsMonsterEffect() and rp~=tp
95+
if re:IsMonsterEffect() and rp==1-tp
10096
and Duel.IsExistingMatchingCard(s.dfilter,tp,0,LOCATION_MZONE,1,nil,g) then
10197
Duel.NegateEffect(ev)
10298
end

0 commit comments

Comments
 (0)