Commit 9eb821d0 authored by wind2009's avatar wind2009

revert SUMMON_INFO_REASON_PLAYER

parent 7d8c6481
...@@ -51,12 +51,11 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,12 +51,11 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
end end
function s.cfilter(c,tp) function s.cfilter(c,tp,re)
local typ,se,sp=c:GetSpecialSummonInfo(SUMMON_INFO_TYPE,SUMMON_INFO_REASON_EFFECT,SUMMON_INFO_REASON_PLAYER) return re and re:IsActivated() and re:IsActiveType(TYPE_MONSTER) and c:IsSummonPlayer(1-tp)
return typ&TYPE_MONSTER~=0 and se:IsActivated() and sp==1-tp
end end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp) return eg:IsExists(s.cfilter,1,nil,tp,re)
end end
function s.spfilter(c,e,tp,exc) function s.spfilter(c,e,tp,exc)
local b1=c:IsSetCard(0x145) and c:IsLocation(LOCATION_DECK) local b1=c:IsSetCard(0x145) and c:IsLocation(LOCATION_DECK)
......
...@@ -79,13 +79,12 @@ end ...@@ -79,13 +79,12 @@ end
function c95886782.eqlimit(e,c) function c95886782.eqlimit(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
end end
function c95886782.cfilter(c,e,tp) function c95886782.cfilter(c,tp)
local se,sp=c:GetSpecialSummonInfo(SUMMON_INFO_REASON_EFFECT,SUMMON_INFO_REASON_PLAYER) return c:IsSummonPlayer(1-tp)
return sp==1-tp and se:IsActivated() and e:GetOwnerPlayer()==1-se:GetOwnerPlayer()
end end
function c95886782.atkcon(e,tp,eg,ep,ev,re,r,rp) function c95886782.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipTarget() return e:GetHandler():GetEquipTarget() and re and re:IsActivated() and e:GetOwnerPlayer()==1-re:GetOwnerPlayer()
and eg:IsExists(c95886782.cfilter,1,nil,e,tp) and eg:IsExists(c95886782.cfilter,1,nil,tp)
end end
function c95886782.atkop(e,tp,eg,ep,ev,re,r,rp) function c95886782.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
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