Commit 9a869807 authored by salix5's avatar salix5

fix IsCode()

parent 432a572d
...@@ -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():IsCode(59297550) and re:GetHandler():IsSetCard(0x58) and not 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)
......
...@@ -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():IsCode(85562745) return ep~=tp and bit.band(r,REASON_BATTLE)==0 and re and not 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