11-- 希望郷-オノマトピア-
22-- Onomatopia
33local s ,id = GetID ()
4+ local COUNTER_HI_FIVE = 0x30
45function s .initial_effect (c )
5- c :EnableCounterPermit (0x30 )
6+ c :EnableCounterPermit (COUNTER_HI_FIVE )
67 -- Activate
78 local e1 = Effect .CreateEffect (c )
89 e1 :SetType (EFFECT_TYPE_ACTIVATE )
910 e1 :SetCode (EVENT_FREE_CHAIN )
1011 c :RegisterEffect (e1 )
11- -- add counter
12+ -- Place 1 Hi-Five the Sky Counter on this card
1213 local e2 = Effect .CreateEffect (c )
1314 e2 :SetType (EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS )
1415 e2 :SetProperty (EFFECT_FLAG_DELAY )
@@ -17,7 +18,7 @@ function s.initial_effect(c)
1718 e2 :SetCondition (s .ctcon )
1819 e2 :SetOperation (s .ctop )
1920 c :RegisterEffect (e2 )
20- -- atk/def
21+ -- Monsters you control gain 200 ATK and DEF for each Hi-Five the Sky Counter on this card
2122 local e3 = Effect .CreateEffect (c )
2223 e3 :SetType (EFFECT_TYPE_FIELD )
2324 e3 :SetCode (EFFECT_UPDATE_ATTACK )
@@ -28,7 +29,7 @@ function s.initial_effect(c)
2829 local e4 = e3 :Clone ()
2930 e4 :SetCode (EFFECT_UPDATE_DEFENSE )
3031 c :RegisterEffect (e4 )
31- -- special summon
32+ -- Special Summon 1 "Zubaba", "Gagaga", "Gogogo", or "Dododo" monster from your Deck
3233 local e5 = Effect .CreateEffect (c )
3334 e5 :SetDescription (aux .Stringid (id ,0 ))
3435 e5 :SetCategory (CATEGORY_SPECIAL_SUMMON )
@@ -41,26 +42,25 @@ function s.initial_effect(c)
4142 c :RegisterEffect (e5 )
4243end
4344s .listed_series = {SET_UTOPIA ,SET_ZUBABA ,SET_GAGAGA ,SET_GOGOGO ,SET_DODODO }
44- s .counter_place_list = {0x30 }
45+ s .counter_place_list = {COUNTER_HI_FIVE }
4546function s .ctfilter (c ,tp )
4647 return c :IsFaceup () and c :IsSetCard (SET_UTOPIA ) and c :IsControler (tp )
4748end
4849function s .ctcon (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
4950 return eg :IsExists (s .ctfilter ,1 ,nil ,tp )
5051end
5152function s .ctop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
52- e :GetHandler ():AddCounter (0x30 ,1 )
53+ e :GetHandler ():AddCounter (COUNTER_HI_FIVE ,1 )
5354end
5455function s .val (e ,c )
55- return e :GetHandler ():GetCounter (0x30 )* 200
56+ return e :GetHandler ():GetCounter (COUNTER_HI_FIVE )* 200
5657end
5758function s .spcost (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
58- if chk == 0 then return e :GetHandler ():IsCanRemoveCounter (tp ,0x30 ,2 ,REASON_COST ) end
59- e :GetHandler ():RemoveCounter (tp ,0x30 ,2 ,REASON_COST )
59+ if chk == 0 then return e :GetHandler ():IsCanRemoveCounter (tp ,COUNTER_HI_FIVE ,2 ,REASON_COST ) end
60+ e :GetHandler ():RemoveCounter (tp ,COUNTER_HI_FIVE ,2 ,REASON_COST )
6061end
6162function s .filter (c ,e ,tp )
62- return (c :IsSetCard (SET_ZUBABA ) or c :IsSetCard (SET_GAGAGA ) or c :IsSetCard (SET_GOGOGO ) or c :IsSetCard (SET_DODODO ))
63- and c :IsCanBeSpecialSummoned (e ,0 ,tp ,false ,false )
63+ return c :IsSetCard ({SET_ZUBABA ,SET_GAGAGA ,SET_GOGOGO ,SET_DODODO }) and c :IsCanBeSpecialSummoned (e ,0 ,tp ,false ,false )
6464end
6565function s .sptg (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
6666 if chk == 0 then return Duel .GetLocationCount (tp ,LOCATION_MZONE )> 0
0 commit comments