Commit 84874943 authored by nekrozar's avatar nekrozar Committed by DailyShana

fix Splendid Venus, Traptrix Atrax (#683)

parent c195f202
......@@ -51,6 +51,5 @@ end
function c55428242.chainfilter(e,ct)
local p=e:GetHandlerPlayer()
local te,tp=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
local tc=te:GetHandler()
return p==tp and tc:GetType()==TYPE_TRAP
return p==tp and te:GetActiveType()==TYPE_TRAP
end
......@@ -46,8 +46,7 @@ end
function c5645210.effectfilter(e,ct)
local p=e:GetHandler():GetControler()
local te,tp=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
local tc=te:GetHandler()
return p==tp and tc:IsType(TYPE_SPELL+TYPE_TRAP)
return p==tp and te:IsActiveType(TYPE_SPELL+TYPE_TRAP)
end
function c5645210.distarget(e,c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
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