Commit f168fb5e authored by 想象力很好的毛虫's avatar 想象力很好的毛虫 Committed by GitHub

Fix 妖眼の相剣師 (#2245)

* Fix 妖眼の相剣師

* Fix Condition like [2250](https://github.com/Fluorohydride/ygopro-scripts/pull/2250)
parent 979831be
...@@ -47,19 +47,19 @@ function c62849088.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,19 +47,19 @@ function c62849088.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c62849088.descon(e,tp,eg,ep,ev,re,r,rp) function c62849088.descon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsSummonPlayer,1,nil,1-tp) return eg:IsExists(Card.IsSummonPlayer,1,e:GetHandler(),1-tp)
end end
function c62849088.spfilter(c,loc) function c62849088.spfilter(c,loc,tp)
return c:GetOriginalType()&TYPE_MONSTER~=0 and c:IsSummonLocation(loc) return c:GetOriginalType()&TYPE_MONSTER~=0 and c:IsSummonLocation(loc) and c:IsSummonPlayer(1-tp)
end end
function c62849088.desfilter(c,tp) function c62849088.desfilter(c,tp)
return c:IsSummonPlayer(1-tp) and c:IsSummonLocation(LOCATION_EXTRA) and c:IsLocation(LOCATION_MZONE) return c:IsSummonPlayer(1-tp) and c:IsSummonLocation(LOCATION_EXTRA) and c:IsLocation(LOCATION_MZONE)
end end
function c62849088.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c62849088.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=eg:IsExists(c62849088.spfilter,1,nil,LOCATION_HAND) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 local b1=eg:IsExists(c62849088.spfilter,1,nil,LOCATION_HAND,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(Card.IsCanBeSpecialSummoned,tp,LOCATION_HAND,0,1,nil,e,0,tp,false,false) and Duel.IsExistingMatchingCard(Card.IsCanBeSpecialSummoned,tp,LOCATION_HAND,0,1,nil,e,0,tp,false,false)
local b2=eg:IsExists(c62849088.spfilter,1,nil,LOCATION_DECK) and Duel.IsPlayerCanDraw(tp,2) local b2=eg:IsExists(c62849088.spfilter,1,nil,LOCATION_DECK,tp) and Duel.IsPlayerCanDraw(tp,2)
local b3=eg:IsExists(c62849088.spfilter,1,nil,LOCATION_EXTRA) local b3=eg:IsExists(c62849088.spfilter,1,nil,LOCATION_EXTRA,tp)
if chk==0 then return b1 or b2 or b3 end if chk==0 then return b1 or b2 or b3 end
local off=1 local off=1
local ops={} local ops={}
......
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