22-- Elemental Burst
33local s ,id = GetID ()
44function s .initial_effect (c )
5- -- Activate
5+ -- Tribute 1 each of WIND, WATER, FIRE, and EARTH monsters to activate this card. Destroy all cards on your opponent's side of the field
66 local e1 = Effect .CreateEffect (c )
7+ e1 :SetDescription (aux .Stringid (id ,0 ))
78 e1 :SetCategory (CATEGORY_DESTROY )
89 e1 :SetType (EFFECT_TYPE_ACTIVATE )
910 e1 :SetCode (EVENT_FREE_CHAIN )
@@ -23,11 +24,11 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
2324 Duel .Release (sg ,REASON_COST )
2425end
2526function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
26- if chk == 0 then return Duel .IsExistingMatchingCard (aux . TRUE ,tp ,LOCATION_ONFIELD ,LOCATION_ONFIELD ,1 ,nil ) end
27- local g = Duel .GetMatchingGroup (aux . TRUE ,tp ,0 ,LOCATION_ONFIELD ,nil )
28- Duel .SetOperationInfo (0 ,CATEGORY_DESTROY ,g ,# g ,0 ,0 )
27+ if chk == 0 then return Duel .IsExistingMatchingCard (nil ,tp ,0 ,LOCATION_ONFIELD ,1 ,nil ) end
28+ local g = Duel .GetMatchingGroup (nil ,tp ,0 ,LOCATION_ONFIELD ,nil )
29+ Duel .SetOperationInfo (0 ,CATEGORY_DESTROY ,g ,# g ,tp ,0 )
2930end
3031function s .activate (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
31- local g = Duel .GetMatchingGroup (aux . TRUE ,tp ,0 ,LOCATION_ONFIELD ,nil )
32+ local g = Duel .GetMatchingGroup (nil ,tp ,0 ,LOCATION_ONFIELD ,nil )
3233 Duel .Destroy (g ,REASON_EFFECT )
3334end
0 commit comments