Commit 097de8da authored by POLYMER's avatar POLYMER

fix

parent 8f10ccd3
...@@ -85,17 +85,6 @@ end ...@@ -85,17 +85,6 @@ end
function s.athcon(e,tp,eg,ep,ev,re,r,rp) function s.athcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
local faceup_cards=Group.CreateGroup()
for tc in aux.Next(g) do
if tc:GetFlagEffect(id+1000)>0 then
faceup_cards:AddCard(tc)
end
end
if faceup_cards:GetCount()>0 then
Duel.ConfirmCards(tp,faceup_cards)
Duel.ConfirmCards(1-tp,faceup_cards)
end
return true return true
end end
return false return false
......
...@@ -76,17 +76,6 @@ end ...@@ -76,17 +76,6 @@ end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
local faceup_cards=Group.CreateGroup()
for tc in aux.Next(g) do
if tc:GetFlagEffect(id+1000)>0 then
faceup_cards:AddCard(tc)
end
end
if faceup_cards:GetCount()>0 then
Duel.ConfirmCards(tp,faceup_cards)
Duel.ConfirmCards(1-tp,faceup_cards)
end
return true return true
end end
return false return false
......
...@@ -84,17 +84,6 @@ end ...@@ -84,17 +84,6 @@ end
function s.athcon(e,tp,eg,ep,ev,re,r,rp) function s.athcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
local faceup_cards=Group.CreateGroup()
for tc in aux.Next(g) do
if tc:GetFlagEffect(id+1000)>0 then
faceup_cards:AddCard(tc)
end
end
if faceup_cards:GetCount()>0 then
Duel.ConfirmCards(tp,faceup_cards)
Duel.ConfirmCards(1-tp,faceup_cards)
end
return true return true
end end
return false return false
......
...@@ -87,17 +87,6 @@ end ...@@ -87,17 +87,6 @@ end
function s.athcon(e,tp,eg,ep,ev,re,r,rp) function s.athcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
local faceup_cards=Group.CreateGroup()
for tc in aux.Next(g) do
if tc:GetFlagEffect(id+1000)>0 then
faceup_cards:AddCard(tc)
end
end
if faceup_cards:GetCount()>0 then
Duel.ConfirmCards(tp,faceup_cards)
Duel.ConfirmCards(1-tp,faceup_cards)
end
return true return true
end end
return false return false
......
...@@ -100,17 +100,6 @@ end ...@@ -100,17 +100,6 @@ end
function s.athcon(e,tp,eg,ep,ev,re,r,rp) function s.athcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
local faceup_cards=Group.CreateGroup()
for tc in aux.Next(g) do
if tc:GetFlagEffect(id+1000)>0 then
faceup_cards:AddCard(tc)
end
end
if faceup_cards:GetCount()>0 then
Duel.ConfirmCards(tp,faceup_cards)
Duel.ConfirmCards(1-tp,faceup_cards)
end
return true return true
end end
return false return false
......
...@@ -125,17 +125,6 @@ end ...@@ -125,17 +125,6 @@ end
function s.athcon(e,tp,eg,ep,ev,re,r,rp) function s.athcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
local faceup_cards=Group.CreateGroup()
for tc in aux.Next(g) do
if tc:GetFlagEffect(id+1000)>0 then
faceup_cards:AddCard(tc)
end
end
if faceup_cards:GetCount()>0 then
Duel.ConfirmCards(tp,faceup_cards)
Duel.ConfirmCards(1-tp,faceup_cards)
end
return true return true
end end
return false return false
......
...@@ -149,17 +149,6 @@ end ...@@ -149,17 +149,6 @@ end
function s.athcon(e,tp,eg,ep,ev,re,r,rp) function s.athcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then if c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENSE) then
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
local faceup_cards=Group.CreateGroup()
for tc in aux.Next(g) do
if tc:GetFlagEffect(id+1000)>0 then
faceup_cards:AddCard(tc)
end
end
if faceup_cards:GetCount()>0 then
Duel.ConfirmCards(tp,faceup_cards)
Duel.ConfirmCards(1-tp,faceup_cards)
end
return true return true
end end
return false return false
......
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