Commit 577d03ea authored by dest's avatar dest Committed by mercury233

update dice effects (#1053)

parent 1516aaed
...@@ -27,10 +27,12 @@ function c32015116.rdtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,10 +27,12 @@ function c32015116.rdtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1)
end end
function c32015116.rdfilter(c,lv) function c32015116.rdfilter(c,lv)
if lv~=6 then if lv<=5 then
return c:IsFaceup() and c:GetLevel()==lv return c:IsFaceup() and c:GetLevel()==lv
else elseif lv==6
return c:IsFaceup() and c:GetLevel()>=6 end return c:IsFaceup() and c:GetLevel()>=6 end
else
return false
end end
function c32015116.rdop(e,tp,eg,ep,ev,re,r,rp) function c32015116.rdop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return 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