Commit 8c1cdf22 authored by DailyShana's avatar DailyShana

fix

parent 325e23a3
......@@ -20,7 +20,7 @@ function c21143940.filter(c,e,tp)
and Duel.GetLocationCountFromEx(tp,tp,c)>0
end
function c21143940.chkfilter(c,att)
return c:IsFaceup() and c:IsSetCard(0x8) and c:IsAttribute(att)
return c:IsFaceup() and c:IsSetCard(0x8) and c:GetAttribute()==att
end
function c21143940.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c21143940.chkfilter(chkc,e:GetLabel()) end
......
......@@ -29,7 +29,7 @@ end
function c93600443.chkfilter(c,tc)
local lv=tc:GetLevel()
local att=tc:GetAttribute()
return c:IsFaceup() and c:IsLevelBelow(lv) and c:IsAttribute(att)
return c:IsFaceup() and c:IsLevelBelow(lv) and c:GetAttribute()==att
end
function c93600443.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c93600443.chkfilter(chkc,e:GetLabelObject()) 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