Commit 51549f83 authored by mercury233's avatar mercury233 Committed by DailyShana

fix Pendulum Area (#490)

parent 6a566706
...@@ -29,11 +29,9 @@ function c2359348.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -29,11 +29,9 @@ function c2359348.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,2,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,2,0,0)
end end
function c2359348.activate(e,tp,eg,ep,ev,re,r,rp) function c2359348.activate(e,tp,eg,ep,ev,re,r,rp)
local tc1=Duel.GetFieldCard(tp,LOCATION_SZONE,6) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local tc2=Duel.GetFieldCard(tp,LOCATION_SZONE,7) local sg=g:Filter(Card.IsRelateToEffect,nil,e)
local g=Group.FromCards(tc1,tc2) if sg:GetCount()==2 and Duel.Destroy(sg,REASON_EFFECT)==2 then
if tc1:IsRelateToEffect(e) and tc2:IsRelateToEffect(e)
and Duel.Destroy(g,REASON_EFFECT)==2 then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment