Commit 432a572d authored by salix5's avatar salix5

fix IsCode()

GetCode()== -> IsCode()
GetCode()~= -> not IsCode()
parent dd627aaf
...@@ -16,7 +16,7 @@ function c59297550.initial_effect(c) ...@@ -16,7 +16,7 @@ function c59297550.initial_effect(c)
end end
function c59297550.spcon(e,tp,eg,ep,ev,re,r,rp) function c59297550.spcon(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER) return re:IsActiveType(TYPE_MONSTER)
and re:GetHandler():IsSetCard(0x58) and re:GetHandler():GetCode()~=59297550 and re:GetHandler():IsSetCard(0x58) and re:GetHandler():IsCode(59297550)
end end
function c59297550.filter(c,e,tp) function c59297550.filter(c,e,tp)
return c:IsSetCard(0x58) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsSetCard(0x58) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
......
...@@ -34,10 +34,10 @@ function c61466310.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,10 +34,10 @@ function c61466310.thcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and eg:GetFirst():IsSummonType(SUMMON_TYPE_ADVANCE) return ep==tp and eg:GetFirst():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c61466310.filter(c,code) function c61466310.filter(c,code)
return c:IsAttack(2400,2800) and c:IsDefense(1000) and c:GetCode()~=code and c:IsAbleToHand() return c:IsAttack(2400,2800) and c:IsDefense(1000) and not c:IsCode(code) and c:IsAbleToHand()
end end
function c61466310.filter2(c,atk,code) function c61466310.filter2(c,atk,code)
return c:IsAttack(atk) and c:IsDefense(1000) and c:GetCode()~=code and c:IsAbleToHand() return c:IsAttack(atk) and c:IsDefense(1000) and not c:IsCode(code) and c:IsAbleToHand()
end end
function c61466310.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c61466310.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c61466310.filter,tp,LOCATION_DECK,0,1,nil,eg:GetFirst():GetCode()) end if chk==0 then return Duel.IsExistingMatchingCard(c61466310.filter,tp,LOCATION_DECK,0,1,nil,eg:GetFirst():GetCode()) end
......
...@@ -16,7 +16,7 @@ function c66727115.rfilter(c,e,tp) ...@@ -16,7 +16,7 @@ function c66727115.rfilter(c,e,tp)
and Duel.IsExistingTarget(c66727115.spfilter,tp,LOCATION_GRAVE,0,1,nil,c:GetCode(),e,tp) and Duel.IsExistingTarget(c66727115.spfilter,tp,LOCATION_GRAVE,0,1,nil,c:GetCode(),e,tp)
end end
function c66727115.spfilter(c,code,e,tp) function c66727115.spfilter(c,code,e,tp)
return c:IsSetCard(0x88) and c:GetCode()~=code and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x88) and not c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c66727115.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c66727115.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
......
...@@ -47,5 +47,5 @@ function c68661341.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,5 +47,5 @@ function c68661341.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c68661341.sumlimit(e,c) function c68661341.sumlimit(e,c)
return c:GetCode()~=e:GetLabel() return not c:IsCode(e:GetLabel())
end end
...@@ -20,7 +20,7 @@ function c80802524.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c80802524.condition(e,tp,eg,ep,ev,re,r,rp)
else return false end else return false end
end end
function c80802524.filter(c,e,tp,code) function c80802524.filter(c,e,tp,code)
return c:IsSetCard(0x8d) and c:GetCode()~=code and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) return c:IsSetCard(0x8d) and not c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)
end end
function c80802524.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c80802524.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c80802524.filter(chkc,e,tp,e:GetLabel()) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c80802524.filter(chkc,e,tp,e:GetLabel()) end
......
...@@ -19,7 +19,7 @@ function c85562745.initial_effect(c) ...@@ -19,7 +19,7 @@ function c85562745.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c85562745.con(e,tp,eg,ep,ev,re,r,rp) function c85562745.con(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and bit.band(r,REASON_BATTLE)==0 and re and re:GetHandler():GetCode()~=85562745 return ep~=tp and bit.band(r,REASON_BATTLE)==0 and re and re:GetHandler():IsCode(85562745)
end end
function c85562745.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c85562745.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true 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