Commit 4a1f2c5f authored by nanahira's avatar nanahira

bnot

parent 1440ab57
......@@ -204,7 +204,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if (g:GetFirst():GetOriginalType() & TYPE_MONSTER)~=0 then
e:SetCategory((cat | CATEGORY_SPECIAL_SUMMON))
else
e:SetCategory((cat & bit.bnot(CATEGORY_SPECIAL_SUMMON)))
e:SetCategory((cat & ~CATEGORY_SPECIAL_SUMMON)
end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -70,7 +70,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if (g:GetFirst():GetOriginalType() & TYPE_MONSTER)~=0 then
e:SetCategory((cat | CATEGORY_SPECIAL_SUMMON))
else
e:SetCategory((cat & bit.bnot(CATEGORY_SPECIAL_SUMMON)))
e:SetCategory((cat & ~CATEGORY_SPECIAL_SUMMON))
end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -39,7 +39,7 @@ function cm.initial_effect(c)
if (re:GetHandler():GetOriginalType() & TYPE_MONSTER)~=0 then
e:SetCategory((cat | CATEGORY_SPECIAL_SUMMON))
else
e:SetCategory((cat & bit.bnot(CATEGORY_SPECIAL_SUMMON)))
e:SetCategory((cat & ~CATEGORY_SPECIAL_SUMMON))
end
end
end)
......
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