1+ -- 育みのアルピリス
2+ -- Alpiris the Nurturer
3+ -- scripted by YoshiDuels
4+ local s ,id = GetID ()
5+ function s .initial_effect (c )
6+ -- Fusion Summon procedure
7+ c :EnableReviveLimit ()
8+ Fusion .AddProcMix (c ,true ,true ,160011019 ,aux .FilterBoolFunctionEx (Card .IsRace ,RACE_PLANT ))
9+ -- Gain LP
10+ local e1 = Effect .CreateEffect (c )
11+ e1 :SetCategory (CATEGORY_RECOVER )
12+ e1 :SetType (EFFECT_TYPE_IGNITION )
13+ e1 :SetRange (LOCATION_MZONE )
14+ e1 :SetCountLimit (1 )
15+ e1 :SetCost (s .cost )
16+ e1 :SetTarget (s .target )
17+ e1 :SetOperation (s .operation )
18+ c :RegisterEffect (e1 )
19+ end
20+ s .named_material = {160011019 }
21+ function s .cost (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
22+ if chk == 0 then return Duel .IsPlayerCanDiscardDeckAsCost (tp ,3 ) end
23+ end
24+ function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
25+ if chk == 0 then return true end
26+ Duel .SetTargetPlayer (tp )
27+ Duel .SetTargetParam (600 )
28+ Duel .SetOperationInfo (0 ,CATEGORY_RECOVER ,nil ,0 ,tp ,600 )
29+ end
30+ function s .operation (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
31+ -- Requirement
32+ if Duel .DiscardDeck (tp ,3 ,REASON_COST )< 1 then return end
33+ -- Effect
34+ local p ,d = Duel .GetChainInfo (0 ,CHAININFO_TARGET_PLAYER ,CHAININFO_TARGET_PARAM )
35+ Duel .Recover (p ,d ,REASON_EFFECT )
36+ end
0 commit comments