Commit fd7b2218 authored by Nemo Ma's avatar Nemo Ma

fix

parent 14e9a3ae
...@@ -108,11 +108,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -108,11 +108,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=re:GetHandler()
while tc do if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then
if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
end
tc=eg:GetNext()
end end
end end
...@@ -93,11 +93,8 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,11 +93,8 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=re:GetHandler()
while tc do if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then
if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
end
tc=eg:GetNext()
end end
end end
...@@ -124,11 +124,8 @@ function cm.aclimit(e,re,tp) ...@@ -124,11 +124,8 @@ function cm.aclimit(e,re,tp)
return re:GetHandler():IsOnField() or re:IsHasType(EFFECT_TYPE_ACTIVATE) return re:GetHandler():IsOnField() or re:IsHasType(EFFECT_TYPE_ACTIVATE)
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=re:GetHandler()
while tc do if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then
if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
end
tc=eg:GetNext()
end end
end end
...@@ -105,11 +105,8 @@ function cm.atlimit(e,c) ...@@ -105,11 +105,8 @@ function cm.atlimit(e,c)
return not c:IsCode(33701507) return not c:IsCode(33701507)
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=re:GetHandler()
while tc do if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then
if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
end
tc=eg:GetNext()
end end
end end
...@@ -113,11 +113,8 @@ function cm.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -113,11 +113,8 @@ function cm.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.Recover(p,d,REASON_EFFECT) Duel.Recover(p,d,REASON_EFFECT)
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=re:GetHandler()
while tc do if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then
if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
end
tc=eg:GetNext()
end end
end end
...@@ -124,11 +124,8 @@ function cm.atlimit(e,c) ...@@ -124,11 +124,8 @@ function cm.atlimit(e,c)
return not c:IsCode(33701507) return not c:IsCode(33701507)
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=re:GetHandler()
while tc do if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then
if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
end
tc=eg:GetNext()
end end
end end
...@@ -89,11 +89,8 @@ function cm.efilter(e,re) ...@@ -89,11 +89,8 @@ function cm.efilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer() return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=re:GetHandler()
while tc do if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) and not cm[ep]:IsContains(tc) then
if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) and not cm[ep]:IsContains(tc) then cm[ep]:AddCard(tc)
cm[ep]:AddCard(tc)
end
tc=eg:GetNext()
end 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