Skip to content

Commit d6b274f

Browse files
committed
"Cyber Angel Izana" fix
Fixed a bug where it would not be possible to send to the GY a Trap monster that was still treated as a Trap in the monster zone
1 parent ee61f05 commit d6b274f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

official/c91668401.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
local s,id=GetID()
55
function s.initial_effect(c)
66
c:EnableReviveLimit()
7-
--Make the opponent send 1 Spell/Trap to the GY
7+
--Make the opponent send 1 Spell/Trap they control to the GY
88
local e1=Effect.CreateEffect(c)
99
e1:SetDescription(aux.Stringid(id,0))
1010
e1:SetCategory(CATEGORY_TOGRAVE)
@@ -15,7 +15,7 @@ function s.initial_effect(c)
1515
e1:SetTarget(s.tgtg)
1616
e1:SetOperation(s.tgop)
1717
c:RegisterEffect(e1)
18-
--Can make a second attack in a row
18+
--This card can make a second attack in a row
1919
local e2=Effect.CreateEffect(c)
2020
e2:SetDescription(aux.Stringid(id,1))
2121
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
@@ -26,7 +26,7 @@ function s.initial_effect(c)
2626
--Shuffle 1 Ritual Monster from your GY into the Deck and destroy 1 card the opponent controls
2727
local e3=Effect.CreateEffect(c)
2828
e3:SetDescription(aux.Stringid(id,2))
29-
e3:SetCategory(CATEGORY_DESTROY+CATEGORY_TODECK)
29+
e3:SetCategory(CATEGORY_TODECK+CATEGORY_DESTROY)
3030
e3:SetType(EFFECT_TYPE_QUICK_O)
3131
e3:SetCode(EVENT_CHAINING)
3232
e3:SetRange(LOCATION_MZONE)
@@ -37,13 +37,13 @@ function s.initial_effect(c)
3737
c:RegisterEffect(e3)
3838
end
3939
s.listed_series={SET_CYBER_ANGEL}
40-
s.listed_names={39996157}
40+
s.listed_names={39996157} --"Machine Angel Ritual"
4141
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
42-
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_SZONE)>0 end
43-
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,LOCATION_SZONE)
42+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSpellTrap,tp,0,LOCATION_ONFIELD,1,nil) end
43+
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_ONFIELD)
4444
end
4545
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
46-
local g=Duel.GetMatchingGroup(nil,1-tp,LOCATION_SZONE,0,nil)
46+
local g=Duel.GetMatchingGroup(Card.IsSpellTrap,1-tp,LOCATION_ONFIELD,0,nil)
4747
if #g>0 then
4848
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_TOGRAVE)
4949
local sg=g:Select(1-tp,1,1,nil)

0 commit comments

Comments
 (0)