Commit 637418c1 authored by Nemo Ma's avatar Nemo Ma

Update c33720900.lua

parent 1d2aea60
...@@ -96,6 +96,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -96,6 +96,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local sg=g:Filter(s.hasSameCodeButNotOtherOnes,nil,tc:GetCode()) local sg=g:Filter(s.hasSameCodeButNotOtherOnes,nil,tc:GetCode())
if not sg:IsContains(tc) then
sg:AddCard(tc)
end
local nrg=sg:Filter(aux.NOT(Card.IsAbleToRemove),nil) local nrg=sg:Filter(aux.NOT(Card.IsAbleToRemove),nil)
if #nrg>0 then if #nrg>0 then
if #nrg>=2 then if #nrg>=2 then
...@@ -122,6 +125,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -122,6 +125,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local sg=g:Filter(s.hasSameCodeButNotOtherOnes,nil,tc:GetCode()) local sg=g:Filter(s.hasSameCodeButNotOtherOnes,nil,tc:GetCode())
if not sg:IsContains(tc) then
sg:AddCard(tc)
end
local nrg=sg:Filter(aux.NOT(Card.IsAbleToRemove),nil) local nrg=sg:Filter(aux.NOT(Card.IsAbleToRemove),nil)
if #nrg>0 then if #nrg>0 then
if #nrg>=2 then if #nrg>=2 then
......
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