Skip to content

Commit d73d3c3

Browse files
authored
Update "Advent of Ra"
-Used new archetype constant -Minor notation update
1 parent 08179d9 commit d73d3c3

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

skill/c300309004.lua

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
--Advent of Ra
22
--Scripted by The Razgriz
3-
Duel.LoadScript("c420.lua")
43
local s,id=GetID()
54
function s.initial_effect(c)
65
aux.AddSkillProcedure(c,2,false,nil,nil)
@@ -15,7 +14,7 @@ function s.initial_effect(c)
1514
c:RegisterEffect(e1)
1615
end
1716
s.listed_names={CARD_RA}
18-
s.listed_series={0x584} --"The Winged Dragon of Ra" archetype
17+
s.listed_series={SET_THE_WINGED_DRAGON_OF_RA}
1918
function s.flipop(e,tp,eg,ep,ev,re,r,rp)
2019
Duel.Hint(HINT_SKILL_FLIP,tp,id|(1<<32))
2120
Duel.Hint(HINT_CARD,tp,id)
@@ -29,6 +28,8 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp)
2928
e1:SetOperation(s.atkdefop)
3029
Duel.RegisterEffect(e1,tp)
3130
--Activate 1 of these Skills once per turn
31+
--● Reveal 1 "The Winged Dragon of Ra" monster in your hand, place it on the bottom of the Deck, then draw 1 card.
32+
--● Once per Duel, you can discard 1 card, then add 1 "The Winged Dragon of Ra" monster from your Deck to your hand.
3233
local e2=Effect.CreateEffect(c)
3334
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
3435
e2:SetCode(EVENT_FREE_CHAIN)
@@ -67,10 +68,10 @@ function s.atkdefop(e,tp,eg,ep,ev,re,r,rp)
6768
end
6869
--Skill choice functions
6970
function s.tdfilter(c)
70-
return c:IsTheWingedDragonofRa() and c:IsAbleToDeck() and not c:IsPublic()
71+
return c:IsSetCard(SET_THE_WINGED_DRAGON_OF_RA) and c:IsMonster() and c:IsAbleToDeck() and not c:IsPublic()
7172
end
7273
function s.thfilter(c)
73-
return c:IsTheWingedDragonofRa() and c:IsAbleToHand()
74+
return c:IsSetCard(SET_THE_WINGED_DRAGON_OF_RA) and c:IsMonster() and c:IsAbleToHand()
7475
end
7576
function s.effcon(e,tp,eg,ep,ev,re,r,rp)
7677
local b1=Duel.IsExistingMatchingCard(s.tdfilter,tp,LOCATION_HAND,0,1,nil) and Duel.IsPlayerCanDraw(tp,1)
@@ -88,7 +89,7 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
8889
Duel.Hint(HINT_CARD,tp,id)
8990
--You can only use 1 Skill per turn
9091
Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1)
91-
--Place 1 "The Winged Dragon of Ra" monster on the bottom of the Deck to draw 1 card
92+
--Place 1 "The Winged Dragon of Ra" monster on the bottom of the Deck, then draw 1 card
9293
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
9394
local tc=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_HAND,0,1,1,nil):GetFirst()
9495
Duel.ConfirmCards(1-tp,tc)

0 commit comments

Comments
 (0)