@@ -5,16 +5,16 @@ local COUNTER_OTOSHIDAMASHI=0x59
55local s ,id = GetID ()
66function s .initial_effect (c )
77 c :EnableCounterPermit (COUNTER_OTOSHIDAMASHI ,LOCATION_MZONE )
8- -- Your opponent's monster cannot target this card for attacks
8+ -- Your opponent's monster cannot target this card for attacks while you control a non-Tuner monster
99 local e1 = Effect .CreateEffect (c )
1010 e1 :SetType (EFFECT_TYPE_SINGLE )
1111 e1 :SetProperty (EFFECT_FLAG_SINGLE_RANGE )
12- e1 :SetRange (LOCATION_MZONE )
1312 e1 :SetCode (EFFECT_CANNOT_BE_BATTLE_TARGET )
13+ e1 :SetRange (LOCATION_MZONE )
1414 e1 :SetCondition (s .atklm )
1515 e1 :SetValue (aux .imval2 )
1616 c :RegisterEffect (e1 )
17- -- Special Summon "Otoshidamashi Tokens"
17+ -- Special Summon "Otoshidamashi Tokens" equal to the number of "Otoshidamashi Counters" on this card
1818 local e2 = Effect .CreateEffect (c )
1919 e2 :SetDescription (aux .Stringid (id ,0 ))
2020 e2 :SetCategory (CATEGORY_COUNTER + CATEGORY_SPECIAL_SUMMON + CATEGORY_TOKEN )
@@ -35,7 +35,7 @@ function s.atklm(e)
3535 return Duel .IsExistingMatchingCard (s .atkfilter ,e :GetHandlerPlayer (),LOCATION_MZONE ,0 ,1 ,nil )
3636end
3737function s .cfilter (c ,tp )
38- return c :GetPreviousControler () == 1 - tp and c :IsMonster () and c :IsPreviousLocation (LOCATION_MZONE )
38+ return c :IsPreviousControler ( 1 - tp ) and c :IsMonster () and c :IsPreviousLocation (LOCATION_MZONE )
3939end
4040function s .tkcon (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
4141 return eg :IsExists (s .cfilter ,1 ,nil ,tp )
4747function s .tkop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
4848 local c = e :GetHandler ()
4949 local ft = Duel .GetLocationCount (tp ,LOCATION_MZONE )
50- if e : GetHandler (): AddCounter (COUNTER_OTOSHIDAMASHI ,1 )> 0 and ft > 0
50+ if c : AddCounter (COUNTER_OTOSHIDAMASHI ,1 ) and ft > 0
5151 and Duel .IsPlayerCanSpecialSummonMonster (tp ,id + 1 ,0 ,TYPES_TOKEN ,0 ,0 ,1 ,RACE_BEAST ,ATTRIBUTE_EARTH ) then
5252 Duel .BreakEffect ()
5353 if Duel .IsPlayerAffectedByEffect (tp ,CARD_BLUEEYES_SPIRIT ) then ft = 1 end
@@ -81,4 +81,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp)
8181 end
8282 Duel .SpecialSummonComplete ()
8383 end
84- end
84+ end
0 commit comments