Commit e445d6ef authored by VanillaSalt's avatar VanillaSalt

fix

parent f3bd1fa8
......@@ -16,7 +16,7 @@ function c30646525.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_RITUAL
end
function c30646525.filter(c,atk)
return c:IsFaceup() and c:GetDefense()<=atk
return c:IsFaceup() and c:IsDefenseBelow(atk)
end
function c30646525.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -39,7 +39,7 @@ function c33236860.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp)
end
function c33236860.filter(c,atk)
return c:IsFaceup() and c:GetDefense()<atk
return c:IsFaceup() and c:IsDefenseBelow(atk-1)
end
function c33236860.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
......@@ -50,7 +50,7 @@ function c33236860.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c33236860.desfilter(c,e,atk)
return c:IsFaceup() and c:IsRelateToEffect(e) and c:GetDefense()<atk
return c:IsFaceup() and c:IsRelateToEffect(e) and c:IsDefenseBelow(atk-1)
end
function c33236860.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -16,7 +16,7 @@ function c38562933.descon(e,tp,eg,ep,ev,re,r,rp)
local d=Duel.GetAttackTarget()
if d==c then d=Duel.GetAttacker() end
e:SetLabelObject(d)
return d and d:IsFaceup() and d:GetDefense()<=c:GetAttack()
return d and d:IsFaceup() and d:IsDefenseBelow(c:GetAttack())
end
function c38562933.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......@@ -25,7 +25,7 @@ end
function c38562933.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local d=e:GetLabelObject()
if c:IsFaceup() and c:IsRelateToEffect(e) and d:IsRelateToBattle() and d:GetDefense()<=c:GetAttack() then
if c:IsFaceup() and c:IsRelateToEffect(e) and d:IsRelateToBattle() and d:IsDefenseBelow(c:GetAttack()) then
Duel.Destroy(d,REASON_EFFECT)
end
end
......@@ -13,7 +13,7 @@ function c39357122.initial_effect(c)
c:RegisterEffect(e1)
end
function c39357122.filter(c,atk)
return c:IsFaceup() and c:GetDefense()<atk
return c:IsFaceup() and c:IsDefenseBelow(atk-1)
end
function c39357122.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local atk=e:GetHandler():GetAttack()
......
......@@ -20,7 +20,7 @@ function c60434101.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,c60434101.costfilter,1,1,REASON_DISCARD+REASON_COST)
end
function c60434101.filter(c,atk)
return c:IsFaceup() and c:GetDefense()<=atk
return c:IsFaceup() and c:IsDefenseBelow(atk)
end
function c60434101.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
......@@ -33,7 +33,7 @@ end
function c60434101.op(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:GetDefense()<=c:GetAttack() then
if c:IsFaceup() and c:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsDefenseBelow(c:GetAttack()) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
......@@ -16,7 +16,7 @@ function c71717923.costfilter(c)
and Duel.IsExistingMatchingCard(c71717923.filter,0,LOCATION_MZONE,LOCATION_MZONE,1,c,c:GetAttack())
end
function c71717923.filter(c,atk)
return c:IsFaceup() and c:GetDefense()<=atk
return c:IsFaceup() and c:IsDefenseBelow(atk)
end
function c71717923.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c71717923.costfilter,1,nil) end
......
......@@ -18,7 +18,7 @@ function c76075810.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_EFFECT)
end
function c76075810.filter(c,atk)
return c:IsFaceup() and c:GetDefense()<atk
return c:IsFaceup() and c:IsDefenseBelow(atk-1)
end
function c76075810.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local atk=e:GetHandler():GetAttack()
......
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