Commit 65bfc1e4 authored by salix5's avatar salix5

fix: IsRace()

parent f5d8477d
...@@ -34,7 +34,7 @@ function c296499.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -34,7 +34,7 @@ function c296499.target(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():SetHint(CHINT_RACE,rc) e:GetHandler():SetHint(CHINT_RACE,rc)
end end
function c296499.atktarget(e,c) function c296499.atktarget(e,c)
return c:GetRace()==e:GetLabelObject():GetLabel() return c:IsRace(e:GetLabelObject():GetLabel())
end end
function c296499.mtcon(e,tp,eg,ep,ev,re,r,rp) function c296499.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
......
...@@ -18,7 +18,7 @@ function c35329581.filter(c,e,tp) ...@@ -18,7 +18,7 @@ function c35329581.filter(c,e,tp)
end end
function c35329581.spfilter(c,e,tp,tc) function c35329581.spfilter(c,e,tp,tc)
return c:IsType(TYPE_SYNCHRO) and c:IsLevel(tc:GetLevel()) return c:IsType(TYPE_SYNCHRO) and c:IsLevel(tc:GetLevel())
and c:GetRace()==tc:GetRace() and c:GetCode()~=tc:GetCode() and c:IsRace(tc:GetRace()) and not c:IsCode(tc:GetCode())
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
......
...@@ -27,7 +27,7 @@ function c78348934.filter1(c) ...@@ -27,7 +27,7 @@ function c78348934.filter1(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end end
function c78348934.filter2(c,rc) function c78348934.filter2(c,rc)
return c:GetRace()==rc and c:IsAbleToRemove() return c:IsRace(rc) and c:IsAbleToRemove()
end end
function c78348934.filter3(c) function c78348934.filter3(c)
return c:IsFaceup() and c:IsSetCard(0xd6,0xd7) return c:IsFaceup() and c:IsSetCard(0xd6,0xd7)
......
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