Skip to content

Commit 9db4143

Browse files
authored
Fix "Vayu The Embem of Honor (Anime)"
Prevent script error when selecting Synchro Monsters in Extra Deck.
1 parent 585483f commit 9db4143

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

unofficial/c511002219.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
--BF-大旆のヴァーユ
1+
--BF-大旆のヴァーユ (Anime)
22
--Blackwing - Vayu the Emblem of Honor (Anime)
33
local s,id=GetID()
44
function s.initial_effect(c)
5-
--special summon
5+
--Synchro Summon 1 Synchro Monster by banishing this card and 1 non-Tuner monster from your GY
66
local e1=Effect.CreateEffect(c)
77
e1:SetDescription(aux.Stringid(89326990,0))
88
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
@@ -11,7 +11,7 @@ function s.initial_effect(c)
1111
e1:SetTarget(s.target)
1212
e1:SetOperation(s.operation)
1313
c:RegisterEffect(e1)
14-
--synchro limit
14+
--Cannot be used as Synchro Material while on the field
1515
local e2=Effect.CreateEffect(c)
1616
e2:SetType(EFFECT_TYPE_SINGLE)
1717
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
@@ -20,21 +20,21 @@ function s.initial_effect(c)
2020
e2:SetValue(aux.TRUE)
2121
c:RegisterEffect(e2)
2222
end
23-
function s.filter(c,tp,mc)
23+
function s.synfilter(c,tp,mc)
2424
return c:IsType(TYPE_SYNCHRO) and Duel.IsExistingMatchingCard(s.matfilter,tp,LOCATION_GRAVE,0,1,nil,mc,c)
2525
end
2626
function s.matfilter(c,mc,sc)
2727
return c:IsAbleToRemove() and sc:IsSynchroSummonable(nil,Group.FromCards(c,mc))
2828
end
2929
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
3030
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0)
31-
and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,tp,e:GetHandler()) end
32-
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
31+
and Duel.IsExistingMatchingCard(s.synfilter,tp,LOCATION_EXTRA,0,1,nil,tp,e:GetHandler()) end
32+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
3333
end
3434
function s.operation(e,tp,eg,ep,ev,re,r,rp)
3535
local c=e:GetHandler()
3636
if not c:IsRelateToEffect(e) then return end
37-
local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_EXTRA,0,nil,tp,c)
37+
local g=Duel.GetMatchingGroup(s.synfilter,tp,LOCATION_EXTRA,0,nil,tp,c)
3838
if #g>0 then
3939
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
4040
local tc=g:Select(tp,1,1,nil):GetFirst()
@@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
4444
Synchro.Send=2
4545
Duel.SynchroSummon(tp,tc,nil,mat)
4646
end
47-
end
47+
end

0 commit comments

Comments
 (0)