@@ -13,9 +13,6 @@ function s.initial_effect(c)
1313 e1 :SetOperation (s .activate )
1414 c :RegisterEffect (e1 )
1515end
16- function s .dfilter2 (c )
17- return c :IsType (TYPE_SPELL + TYPE_TRAP )
18- end
1916function s .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
2017 return Duel .IsExistingMatchingCard (aux .FaceupFilter (Card .IsAttribute ,ATTRIBUTE_WIND ),tp ,LOCATION_MZONE ,LOCATION_MZONE ,1 ,nil )
2118 and Duel .IsExistingMatchingCard (aux .FaceupFilter (Card .IsAttribute ,ATTRIBUTE_WATER ),tp ,LOCATION_MZONE ,LOCATION_MZONE ,1 ,nil )
@@ -24,7 +21,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp)
2421end
2522function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
2623 if chk == 0 then return Duel .IsExistingMatchingCard (aux .TRUE ,tp ,0 ,LOCATION_MZONE ,1 ,nil )
27- or Duel .IsExistingMatchingCard (s . dfilter2 ,tp ,0 ,LOCATION_ONFIELD ,1 ,nil )
24+ or Duel .IsExistingMatchingCard (Card . IsSpellTrap ,tp ,0 ,LOCATION_ONFIELD ,1 ,nil )
2825 or Duel .GetFieldGroupCount (tp ,0 ,LOCATION_HAND )>= 2
2926 or Duel .IsPlayerCanDraw (tp ,2 ) end
3027end
@@ -37,7 +34,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3734 opval [off - 1 ]= 1
3835 off = off + 1
3936 end
40- if Duel .IsExistingMatchingCard (s . dfilter2 ,tp ,0 ,LOCATION_ONFIELD ,1 ,nil ) then
37+ if Duel .IsExistingMatchingCard (Card . IsSpellTrap ,tp ,0 ,LOCATION_ONFIELD ,1 ,nil ) then
4138 ops [off ]= aux .Stringid (id ,1 )
4239 opval [off - 1 ]= 2
4340 off = off + 1
@@ -58,12 +55,12 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
5855 local g = Duel .GetMatchingGroup (aux .TRUE ,tp ,0 ,LOCATION_MZONE ,nil )
5956 Duel .Destroy (g ,REASON_EFFECT )
6057 elseif opval [op ]== 2 then
61- local g = Duel .GetMatchingGroup (s . dfilter2 ,tp ,0 ,LOCATION_ONFIELD ,nil )
58+ local g = Duel .GetMatchingGroup (Card . IsSpellTrap ,tp ,0 ,LOCATION_ONFIELD ,nil )
6259 Duel .Destroy (g ,REASON_EFFECT )
6360 elseif opval [op ]== 3 then
6461 local g = Duel .GetFieldGroup (tp ,0 ,LOCATION_HAND ):RandomSelect (1 - tp ,2 )
6562 Duel .SendtoGrave (g ,REASON_EFFECT + REASON_DISCARD )
6663 elseif opval [op ]== 4 then
6764 Duel .Draw (tp ,2 ,REASON_EFFECT )
6865 end
69- end
66+ end
0 commit comments