1+ -- 聖麗の凍姫エイス
2+ -- Aise the Snowmaiden of Sacred Splendor
3+ -- scripted by YoshiDuels
4+ local s ,id = GetID ()
5+ function s .initial_effect (c )
6+ -- Special Summon 1 Beast-Warrior from the GY
7+ local e1 = Effect .CreateEffect (c )
8+ e1 :SetDescription (aux .Stringid (id ,0 ))
9+ e1 :SetCategory (CATEGORY_SPECIAL_SUMMON )
10+ e1 :SetType (EFFECT_TYPE_IGNITION )
11+ e1 :SetRange (LOCATION_MZONE )
12+ e1 :SetCountLimit (1 )
13+ e1 :SetCondition (function (e )return e :GetHandler ():IsStatus (STATUS_SUMMON_TURN )end )
14+ e1 :SetTarget (s .target )
15+ e1 :SetOperation (s .operation )
16+ c :RegisterEffect (e1 )
17+ end
18+ function s .spfilter (c ,e ,tp )
19+ return c :IsRace (RACE_WARRIOR ) and c :IsAttack (2500 ) and c :IsDefense (2500 ) and c :IsCanBeSpecialSummoned (e ,0 ,tp ,false ,false ,POS_FACEUP_DEFENSE )
20+ end
21+ function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
22+ if chk == 0 then return Duel .GetLocationCount (tp ,LOCATION_MZONE )> 0
23+ and Duel .IsExistingMatchingCard (s .spfilter ,tp ,LOCATION_GRAVE |LOCATION_HAND ,0 ,1 ,nil ,e ,tp )
24+ end
25+ Duel .SetOperationInfo (0 ,CATEGORY_SPECIAL_SUMMON ,nil ,0 ,tp ,LOCATION_GRAVE |LOCATION_HAND )
26+ end
27+ function s .filter (c )
28+ return c :IsAttribute (ATTRIBUTE_WATER ) and c :IsCanChangePositionRush ()
29+ end
30+ function s .operation (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
31+ if Duel .GetLocationCount (tp ,LOCATION_MZONE )< 1 then return end
32+ Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_SPSUMMON )
33+ local g = Duel .SelectMatchingCard (tp ,s .spfilter ,tp ,LOCATION_GRAVE |LOCATION_HAND ,0 ,1 ,1 ,nil ,e ,tp )
34+ if Duel .SpecialSummon (g ,0 ,tp ,tp ,false ,false ,POS_FACEUP_DEFENSE )> 0 then
35+ local sg = Duel .GetMatchingGroup (s .filter ,tp ,LOCATION_MZONE ,0 ,nil )
36+ if # sg > 0 and Duel .SelectYesNo (tp ,aux .Stringid (id ,1 )) then
37+ Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_POSCHANGE )
38+ local sc = sg :Select (tp ,1 ,1 ,nil )
39+ if # sc == 0 then return end
40+ Duel .HintSelection (sc )
41+ Duel .BreakEffect ()
42+ Duel .ChangePosition (sc ,POS_FACEUP_DEFENSE ,POS_FACEDOWN_DEFENSE ,POS_FACEUP_ATTACK ,POS_FACEUP_ATTACK )
43+ end
44+ end
45+ end
0 commit comments