@@ -7,13 +7,13 @@ if not ActionDuel then
77 local e1 = Effect .GlobalEffect ()
88 e1 :SetProperty (EFFECT_FLAG_UNCOPYABLE + EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_IGNORE_IMMUNE + EFFECT_FLAG_NO_TURN_RESET )
99 e1 :SetType (EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS )
10- e1 :SetCode (EVENT_ADJUST )
10+ e1 :SetCode (EVENT_PREDRAW )
1111 e1 :SetCountLimit (1 )
1212 e1 :SetOperation (ActionDuel .op )
1313 Duel .RegisterEffect (e1 ,0 )
1414 -- Add Action Card
1515 local e2 = Effect .GlobalEffect ()
16- e2 :SetDescription (aux .Stringid (301 ,0 ))
16+ e2 :SetDescription (aux .Stringid (151000000 ,0 ))
1717 e2 :SetType (EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS )
1818 e2 :SetRange (LOCATION_FZONE )
1919 e2 :SetCode (EVENT_FREE_CHAIN )
@@ -55,25 +55,24 @@ if not ActionDuel then
5555 local announceFilter = {TYPE_ACTION ,OPCODE_ISTYPE ,TYPE_FIELD ,OPCODE_ISTYPE ,OPCODE_AND }
5656 while # actionFieldToBeUsed == 0 do
5757 for p = 0 ,1 do
58- if Duel .SelectYesNo (p ,aux .Stringid (301 , 3 ) ) then
59- Duel .Hint (HINT_SELECTMSG ,tp ,aux .Stringid (301 ,4 ))
58+ if Duel .SelectYesNo (p ,aux .Stringid (151000000 , 3 ) then
59+ Duel .Hint (HINT_SELECTMSG ,tp ,aux .Stringid (151000000 ,4 ))
6060 local af = Duel .AnnounceCard (p ,table.unpack (announceFilter ))
6161 table.insert (actionFieldToBeUsed ,af )
6262 end
6363 end
6464 if # actionFieldToBeUsed > 0 then break
65- else Duel .Hint (HINT_MESSAGE ,0 ,aux .Stringid (301 ,5 )) Duel .Hint (HINT_MESSAGE ,1 ,aux .Stringid (301 ,5 )) end
65+ else Duel .Hint (HINT_MESSAGE ,0 ,aux .Stringid (151000000 ,5 )) Duel .Hint (HINT_MESSAGE ,1 ,aux .Stringid (151000000 ,5 )) end
6666 end
6767 if # actionFieldToBeUsed > 1 then
68- Duel .Hint (HINT_MESSAGE ,0 ,aux .Stringid (301 ,6 ))
69- Duel .Hint (HINT_MESSAGE ,1 ,aux .Stringid (301 ,6 ))
68+ Duel .Hint (HINT_MESSAGE ,0 ,aux .Stringid (151000000 ,6 ))
69+ Duel .Hint (HINT_MESSAGE ,1 ,aux .Stringid (151000000 ,6 ))
7070 local coin = Duel .TossCoin (0 ,1 )
7171 table.remove (actionFieldToBeUsed ,coin + 1 )
7272 end
7373 Duel .Hint (HINT_CARD ,0 ,actionFieldToBeUsed [1 ])
7474 for p = 0 ,1 do
7575 local tc = Duel .CreateToken (p ,actionFieldToBeUsed [1 ])
76- e :SetLabelObject (tc )
7776 -- redirect
7877 local e1 = Effect .CreateEffect (tc )
7978 e1 :SetType (EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS )
@@ -135,7 +134,7 @@ if not ActionDuel then
135134 end
136135 -- Check whether tp already has an Action Card in hand
137136 function ActionDuel .handcheck (tp )
138- if Duel .IsPlayerAffectedByEffect (tp ,150000000 ) then
137+ if Duel .IsPlayerAffectedByEffect (tp ,151000000 ) then
139138 return Duel .IsExistingMatchingCard (ActionDuel .acfilter ,tp ,LOCATION_HAND ,0 ,2 ,nil )
140139 else
141140 return Duel .IsExistingMatchingCard (ActionDuel .acfilter ,tp ,LOCATION_HAND ,0 ,1 ,nil )
@@ -144,7 +143,7 @@ if not ActionDuel then
144143 function ActionDuel .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
145144 return (not ActionDuel .handcheck (tp ) or string.find (e :GetLabelObject ():GetLabelObject ().af ,' m' ))
146145 and Duel .GetFlagEffect (e :GetHandlerPlayer (),320 )== 0
147- and Duel .GetFlagEffect (e :GetHandlerPlayer (),301 )== 0
146+ and Duel .GetFlagEffect (e :GetHandlerPlayer (),151000000 )== 0
148147 and not e :GetHandler ():IsStatus (STATUS_CHAINING )
149148 end
150149 function ActionDuel .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
@@ -156,12 +155,12 @@ if not ActionDuel then
156155 e :SetLabel (t [ac ])
157156 end
158157 function ActionDuel .operation (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
159- if Duel .GetCurrentChain ()> 0 and not Duel .SelectYesNo (tp ,aux .Stringid (301 ,0 )) then return end
158+ if Duel .GetCurrentChain ()> 0 and not Duel .SelectYesNo (tp ,aux .Stringid (151000000 ,0 )) then return end
160159 local originalField = e :GetLabelObject ():GetLabelObject ()
161160 if ActionDuel .handcheck (tp ) and not string.find (originalField .af ,' m' ) then return end
162161 local hintp ,token ,tokenp = {}
163162 if not ActionDuel .handcheck (1 - tp ) and not (string.find (originalField .af ,' t' ) and Duel .GetLP (tp )> Duel .GetLP (1 - tp ))
164- and Duel .SelectYesNo (1 - tp ,aux .Stringid (301 ,1 )) then
163+ and Duel .SelectYesNo (1 - tp ,aux .Stringid (151000000 ,1 )) then
165164 local rps = Duel .RockPaperScissors (false )
166165 if rps < 2 then
167166 tokenp = rps
@@ -172,8 +171,8 @@ if not ActionDuel then
172171 end
173172 if Duel .GetRandomNumber (0 ,1 )== 0 then table.insert (hintp ,tp ) end
174173 for _ ,p in ipairs (hintp ) do
175- Duel .Hint (HINT_MESSAGE ,p ,aux .Stringid (301 ,2 ))
176- Duel .RegisterFlagEffect (p ,301 ,RESET_PHASE + PHASE_END ,0 ,1 )
174+ Duel .Hint (HINT_MESSAGE ,p ,aux .Stringid (151000000 ,2 ))
175+ Duel .RegisterFlagEffect (p ,151000000 ,RESET_PHASE + PHASE_END ,0 ,1 )
177176 end
178177 if tokenp then
179178 token = Duel .CreateToken (tokenp ,e :GetLabel ())
@@ -237,12 +236,12 @@ if not ActionDuel then
237236 return c :IsType (TYPE_ACTION ) and c :IsType (TYPE_FIELD )
238237 end
239238
240- CARD_ACTION_COVER = 301
239+ CARD_ACTION_COVER = 151000000
241240 CARD_VANILLA_MODE = 511004400
242241 CARD_POTENTIAL_YELL = 511004399
243242 CARD_ABILITY_YELL = 511004401
244243 CARD_ABILITY_YELL = 511004401
245- CARD_EARTHBOUND_TUNDRA = 150000000
244+ CARD_EARTHBOUND_TUNDRA = 151000000
246245
247246 local OCGActionFields = {
248247 4064256 ,
@@ -270,7 +269,7 @@ if not ActionDuel then
270269 10080320 ,
271270 7617062 ,
272271 37694547 ,
273- 33017655 ,
272+ 31510000007655 ,
274273 56594520 ,
275274 87430998 ,
276275 62265044 ,
0 commit comments