Commit ecb52c5a authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Lair of Darkness (#1999)

parent 889e03cc
...@@ -46,7 +46,8 @@ function c59160188.relval(e,re,r,rp) ...@@ -46,7 +46,8 @@ function c59160188.relval(e,re,r,rp)
return (c59160188.re_activated or re:IsActivated()) and bit.band(r,REASON_COST)~=0 return (c59160188.re_activated or re:IsActivated()) and bit.band(r,REASON_COST)~=0
end end
function c59160188.regfilter(c) function c59160188.regfilter(c)
return c:GetPreviousTypeOnField()&TYPE_MONSTER>0 local typ=c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetPreviousTypeOnField() or c:GetType()
return typ&TYPE_MONSTER>0
end end
function c59160188.regop(e,tp,eg,ep,ev,re,r,rp) function c59160188.regop(e,tp,eg,ep,ev,re,r,rp)
local mct=eg:FilterCount(c59160188.regfilter,nil) local mct=eg:FilterCount(c59160188.regfilter,nil)
......
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