Skip to content

Commit 400a859

Browse files
authored
"Doom-Z Break Diactorus" fix
Its 2nd effect shouldn't trigger if it's destroyed by battle.
1 parent e980159 commit 400a859

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

pre-release/c101302046.lua

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function s.initial_effect(c)
66
c:EnableReviveLimit()
77
--Xyz Summon procedure: 2 Level 4 monsters
88
Xyz.AddProcedure(c,nil,4,2)
9-
--You can destroy 1 "Doom-Z" card in your hand or face-up field, then you can destroy 1 monster on the field
9+
--Destroy 1 "Doom-Z" card in your hand or face-up field, then you can destroy 1 monster on the field
1010
local e1=Effect.CreateEffect(c)
1111
e1:SetDescription(aux.Stringid(id,0))
1212
e1:SetCategory(CATEGORY_DESTROY)
@@ -17,7 +17,7 @@ function s.initial_effect(c)
1717
e1:SetTarget(s.destg)
1818
e1:SetOperation(s.desop)
1919
c:RegisterEffect(e1)
20-
--You can add to your hand, or send to the GY, 1 Equip Spell from your Deck
20+
--Add to your hand, or send to the GY, 1 Equip Spell from your Deck
2121
local e2=Effect.CreateEffect(c)
2222
e2:SetDescription(aux.Stringid(id,1))
2323
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_TOGRAVE)
@@ -29,14 +29,6 @@ function s.initial_effect(c)
2929
e2:SetTarget(s.thtgtg)
3030
e2:SetOperation(s.thtgop)
3131
c:RegisterEffect(e2)
32-
--Keep track of whether it had an appropriate material before leaving the field
33-
local e3=Effect.CreateEffect(c)
34-
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
35-
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
36-
e3:SetCode(EVENT_LEAVE_FIELD_P)
37-
e3:SetOperation(function(e) e2:SetLabel(e:GetHandler():GetOverlayGroup():FilterCount(s.thtgconfilter,nil)) end)
38-
e3:SetLabelObject(e3)
39-
c:RegisterEffect(e3)
4032
end
4133
s.listed_names={CARD_MEDIUS_THE_PURE}
4234
s.listed_series={SET_DOOM_Z}
@@ -68,7 +60,7 @@ function s.thtgconfilter(c)
6860
end
6961
function s.thtgcon(e,tp,eg,ep,ev,re,r,rp,chk)
7062
local c=e:GetHandler()
71-
return c:IsReason(REASON_BATTLE|REASON_EFFECT) and c:IsPreviousLocation(LOCATION_MZONE) and e:GetLabel()>0
63+
return c:IsReason(REASON_EFFECT) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetOverlayGroup():IsExists(s.thtgconfilter,1,nil)
7264
end
7365
function s.thtgfilter(c)
7466
return c:IsEquipSpell() and (c:IsAbleToHand() or c:IsAbleToGrave())

0 commit comments

Comments
 (0)