Skip to content

Commit ad0efb4

Browse files
committed
"Elemental Burst" update
Fixed its activation legality check to prevent it from looking for cards on your field
1 parent 1dd92ce commit ad0efb4

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

official/c61411502.lua

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
--Elemental Burst
33
local s,id=GetID()
44
function 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)
2425
end
2526
function 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)
2930
end
3031
function 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)
3334
end

0 commit comments

Comments
 (0)