Commit 9dc3180c authored by wind2009's avatar wind2009

Fix アブダクション

parent 612c675b
......@@ -17,12 +17,12 @@ function s.cfilter(c,tp)
and Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil,c)
end
function s.rmfilter(c,ec)
return c:IsAbleToRemove()
return c:IsAbleToRemove() and c:IsType(TYPE_MONSTER)
and c:GetOriginalRace()&ec:GetOriginalRace()~=0
and c:GetOriginalAttribute()&ec:GetOriginalAttribute()~=0
and (c:GetOriginalLevel()&ec:GetOriginalLevel()~=0
or c:GetOriginalRank()&ec:GetOriginalRank()~=0
or c:GetLink()&ec:GetLink()~=0)
and (c:GetLink()==ec:GetLink() and c:IsAllTypes(TYPE_LINK+TYPE_MONSTER) and ec:IsAllTypes(TYPE_LINK+TYPE_MONSTER)
or c:GetOriginalRank()==ec:GetOriginalRank() and c:IsAllTypes(TYPE_XYZ+TYPE_MONSTER) and ec:IsAllTypes(TYPE_XYZ+TYPE_MONSTER)
or c:GetOriginalLevel()==ec:GetOriginalLevel())
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and s.cfilter(chkc,tp) 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