11-- リトマスの死の剣士
2- -- Lithmus Doom Swordsman
2+ -- Litmus Doom Swordsman
33local s ,id = GetID ()
44function s .initial_effect (c )
55 c :EnableReviveLimit ()
6- -- Unnafected by Trap effects
6+ -- Unaffected by Trap effects
77 local e1 = Effect .CreateEffect (c )
88 e1 :SetType (EFFECT_TYPE_SINGLE )
99 e1 :SetProperty (EFFECT_FLAG_SINGLE_RANGE )
1010 e1 :SetRange (LOCATION_MZONE )
1111 e1 :SetCode (EFFECT_IMMUNE_EFFECT )
12- e1 :SetValue (s . efilter )
12+ e1 :SetValue (function ( e , te ) return te : IsTrapEffect () end )
1313 c :RegisterEffect (e1 )
1414 -- Cannot be destroyed by battle
1515 local e2 = Effect .CreateEffect (c )
1616 e2 :SetType (EFFECT_TYPE_SINGLE )
1717 e2 :SetCode (EFFECT_INDESTRUCTABLE_BATTLE )
1818 e2 :SetValue (1 )
1919 c :RegisterEffect (e2 )
20- -- ATK/DEF gain
20+ -- Gains 3000 ATK/DEF when there is a face-up Trap on the field
2121 local e3 = Effect .CreateEffect (c )
2222 e3 :SetType (EFFECT_TYPE_SINGLE )
2323 e3 :SetCode (EFFECT_UPDATE_ATTACK )
2424 e3 :SetProperty (EFFECT_FLAG_SINGLE_RANGE )
2525 e3 :SetRange (LOCATION_MZONE )
26- e3 :SetCondition (s . atkcon )
26+ e3 :SetCondition (function ( e ) return Duel . IsExistingMatchingCard ( aux . FaceupFilter ( Card . IsTrap ), e : GetHandlerPlayer (), LOCATION_ONFIELD , LOCATION_ONFIELD , 1 , nil ) end )
2727 e3 :SetValue (3000 )
2828 c :RegisterEffect (e3 )
2929 local e4 = e3 :Clone ()
3030 e4 :SetCode (EFFECT_UPDATE_DEFENSE )
3131 c :RegisterEffect (e4 )
32- -- Set 1 Trap card
32+ -- Set 1 Trap Card from either GY
3333 local e5 = Effect .CreateEffect (c )
3434 e5 :SetDescription (aux .Stringid (id ,0 ))
3535 e5 :SetType (EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O )
@@ -40,20 +40,10 @@ function s.initial_effect(c)
4040 e5 :SetOperation (s .setop )
4141 c :RegisterEffect (e5 )
4242end
43- s .listed_names = {8955148 }
44- function s .efilter (e ,te )
45- return te :IsActiveType (TYPE_TRAP )
46- end
47- function s .filter (c )
48- return c :IsFaceup () and c :IsTrap ()
49- end
50- function s .atkcon (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
51- return Duel .IsExistingMatchingCard (s .filter ,e :GetHandlerPlayer (),LOCATION_ONFIELD ,LOCATION_ONFIELD ,1 ,nil )
52- end
43+ s .listed_names = {8955148 } -- "Litmus Doom Ritual"
5344function s .setcon (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
5445 local c = e :GetHandler ()
55- return rp == 1 - tp and c :IsPreviousControler (tp ) and c :IsPreviousLocation (LOCATION_MZONE )
56- and c :IsSummonType (SUMMON_TYPE_RITUAL )
46+ return rp == 1 - tp and c :IsPreviousControler (tp ) and c :IsPreviousLocation (LOCATION_MZONE ) and c :IsRitualSummoned ()
5747end
5848function s .setfilter (c )
5949 return c :IsTrap () and c :IsSSetable ()
0 commit comments