Commit 276e853d authored by Tachibana's avatar Tachibana

nmbd

parent f097120d
......@@ -43,8 +43,14 @@ function cm.reset(e,tp,eg,ep,ev,re,r,rp)
Sr_GODback={}
Sr_GODback[1]=0
end
function GetOr(tab)
local num=0
for i,v in ipairs(tab) do
num=num|v
end
return num
end
function cm.actcon(e,tp)
Debug.Message(e:GetHandlerPlayer())
return Duel.GetMatchingGroupCount(cm.gfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil)>0
end
function cm.gfilter(c)
......@@ -56,7 +62,7 @@ function cm.splimit(e,c)
end
----
function cm.sumfilter(c,e,tp,att)
return (c:IsSetCard(0x5ccc) or (c:IsRace(RACE_MACHINE) and c:IsLevel(10))) and not c:IsAttribute(att) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not rsof.Table_List(Sr_GODback,c:GetAttribute())
return (c:IsSetCard(0x5ccc) or (c:IsRace(RACE_MACHINE) and c:IsLevel(10))) and not c:IsAttribute(att) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsAttribute(GetOr(Sr_GODback))
end
function cm.spmfilter(c,e,tp)
local att=c:GetAttribute()
......
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