1- -- 幻撃竜ミラギアス
1+ -- 幻撃竜ミラギアス
22-- Illusion Strike Dragon Miragias
33local s ,id = GetID ()
44function s .initial_effect (c )
5- -- atk change
5+ -- Up to 2 face-up Level 7 or lower monsters on your opponent's field lose 1500 ATK until the end of this turn.
66 local e1 = Effect .CreateEffect (c )
77 e1 :SetDescription (aux .Stringid (id ,0 ))
88 e1 :SetCategory (CATEGORY_ATKCHANGE )
@@ -28,11 +28,12 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2828end
2929function s .operation (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
3030 local c = e :GetHandler ()
31+ Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_TOGRAVE )
3132 local tg = Duel .SelectMatchingCard (tp ,s .costfilter ,tp ,LOCATION_HAND ,0 ,1 ,1 ,nil )
3233 if Duel .SendtoGrave (tg ,REASON_COST )== 1 then
3334 local g = Duel .GetMatchingGroup (aux .FilterMaximumSideFunctionEx (s .atkfilter ),tp ,0 ,LOCATION_MZONE ,nil )
3435 if # g > 0 then
35- Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_FACEUP )
36+ Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_ATKDEF )
3637 local g2 = Duel .SelectMatchingCard (tp ,aux .FilterMaximumSideFunctionEx (s .atkfilter ),tp ,0 ,LOCATION_MZONE ,1 ,2 ,nil )
3738 if # g2 > 0 then
3839 for tc in g2 :Iter () do
@@ -43,29 +44,27 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
4344 e1 :SetReset (RESETS_STANDARD_PHASE_END )
4445 tc :RegisterEffect (e1 )
4546 end
47+ -- Can make a second attack on monsters during the Battle Phase
4648 local e1 = Effect .CreateEffect (c )
4749 e1 :SetType (EFFECT_TYPE_SINGLE )
4850 e1 :SetCode (EFFECT_EXTRA_ATTACK_MONSTER )
49- e1 :SetCondition (s . macon )
51+ e1 :SetCondition (function ( e ) return e : GetHandler (): HasFlagEffect ( id + 1 ) end )
5052 e1 :SetProperty (EFFECT_FLAG_CANNOT_DISABLE )
51- e1 :SetReset (RESET_EVENT + RESETS_STANDARD + RESET_PHASE + PHASE_BATTLE )
53+ e1 :SetReset (RESET_EVENT | RESETS_STANDARD | RESET_PHASE | PHASE_BATTLE )
5254 e1 :SetValue (1 )
5355 c :RegisterEffect (e1 )
5456 local e2 = Effect .CreateEffect (c )
5557 e2 :SetType (EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS )
5658 e2 :SetCode (EVENT_BATTLE_DESTROYING )
5759 e2 :SetProperty (EFFECT_FLAG_CANNOT_DISABLE )
5860 e2 :SetCondition (aux .bdcon )
59- e2 :SetReset (RESET_EVENT + RESETS_STANDARD + RESET_PHASE + PHASE_BATTLE )
61+ e2 :SetReset (RESET_EVENT | RESETS_STANDARD | RESET_PHASE | PHASE_BATTLE )
6062 e2 :SetOperation (s .bdop )
6163 c :RegisterEffect (e2 )
6264 end
6365 end
6466 end
6567end
66- function s .macon (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
67- return e :GetHandler ():GetFlagEffect (id + 1 )> 0
68- end
6968function s .bdop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
7069 e :GetHandler ():RegisterFlagEffect (id + 1 ,RESETS_STANDARD_PHASE_END ,0 ,1 )
71- end
70+ end
0 commit comments