Skip to content

Commit bd8f496

Browse files
authored
Update "The Stigmata-Devouring Dragon"
Make a separate condition function to prevent script errors.
1 parent 8a4c695 commit bd8f496

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pre-release/c100444241.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function s.initial_effect(c)
1212
e1a:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
1313
e1a:SetCode(EFFECT_UPDATE_ATTACK)
1414
e1a:SetRange(LOCATION_MZONE)
15-
e1a:SetCondition(function() return Duel.IsExistingMatchingCard(aux.AND(Card.IsSetCard,Card.IsMonster),0,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,1,nil,SET_ECCLESIA) end)
15+
e1a:SetCondition(function() return Duel.IsExistingMatchingCard(s.atkimmconfilter,0,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,1,nil) end)
1616
e1a:SetValue(500)
1717
c:RegisterEffect(e1a)
1818
local e1b=e1a:Clone()
@@ -45,6 +45,9 @@ function s.initial_effect(c)
4545
end
4646
s.listed_names={CARD_ALBAZ}
4747
s.listed_series={SET_ECCLESIA,SET_DOGMATIKA,SET_TRI_BRIGADE}
48+
function s.atkimmconfilter(c)
49+
return c:IsFaceup() and c:IsSetCard(SET_ECCLESIA) and c:IsMonster()
50+
end
4851
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
4952
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_GRAVE|LOCATION_REMOVED,LOCATION_GRAVE|LOCATION_REMOVED,1,nil) end
5053
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,PLAYER_EITHER,LOCATION_GRAVE|LOCATION_REMOVED)
@@ -71,4 +74,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
7174
Duel.SendtoHand(g,nil,REASON_EFFECT)
7275
Duel.ConfirmCards(1-tp,g)
7376
end
74-
end
77+
end

0 commit comments

Comments
 (0)