@@ -13,9 +13,6 @@ function s.initial_effect(c)
13
13
e1 :SetOperation (s .activate )
14
14
c :RegisterEffect (e1 )
15
15
end
16
- function s .dfilter2 (c )
17
- return c :IsType (TYPE_SPELL + TYPE_TRAP )
18
- end
19
16
function s .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
20
17
return Duel .IsExistingMatchingCard (aux .FaceupFilter (Card .IsAttribute ,ATTRIBUTE_WIND ),tp ,LOCATION_MZONE ,LOCATION_MZONE ,1 ,nil )
21
18
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)
24
21
end
25
22
function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
26
23
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 )
28
25
or Duel .GetFieldGroupCount (tp ,0 ,LOCATION_HAND )>= 2
29
26
or Duel .IsPlayerCanDraw (tp ,2 ) end
30
27
end
@@ -37,7 +34,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
37
34
opval [off - 1 ]= 1
38
35
off = off + 1
39
36
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
41
38
ops [off ]= aux .Stringid (id ,1 )
42
39
opval [off - 1 ]= 2
43
40
off = off + 1
@@ -58,12 +55,12 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
58
55
local g = Duel .GetMatchingGroup (aux .TRUE ,tp ,0 ,LOCATION_MZONE ,nil )
59
56
Duel .Destroy (g ,REASON_EFFECT )
60
57
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 )
62
59
Duel .Destroy (g ,REASON_EFFECT )
63
60
elseif opval [op ]== 3 then
64
61
local g = Duel .GetFieldGroup (tp ,0 ,LOCATION_HAND ):RandomSelect (1 - tp ,2 )
65
62
Duel .SendtoGrave (g ,REASON_EFFECT + REASON_DISCARD )
66
63
elseif opval [op ]== 4 then
67
64
Duel .Draw (tp ,2 ,REASON_EFFECT )
68
65
end
69
- end
66
+ end
0 commit comments