Commit 70b05782 authored by VanillaSalt's avatar VanillaSalt

fix

not a==b is the same as (not a)==b
parent 90eac737
...@@ -30,7 +30,7 @@ function c57707471.initial_effect(c) ...@@ -30,7 +30,7 @@ function c57707471.initial_effect(c)
e3:SetOperation(c57707471.desop) e3:SetOperation(c57707471.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
if c57707471.xyz_filter then if c57707471.xyz_filter then
c57707471.xyz_filter=function(mc) return mc:IsXyzLevel(c,lv) end c57707471.xyz_filter=function(mc) return mc:IsXyzLevel(c,6) end
end end
end end
c57707471.xyz_number=21 c57707471.xyz_number=21
......
...@@ -26,7 +26,7 @@ function c59951714.initial_effect(c) ...@@ -26,7 +26,7 @@ function c59951714.initial_effect(c)
Duel.AddCustomActivityCounter(59951714,ACTIVITY_SPSUMMON,c59951714.counterfilter) Duel.AddCustomActivityCounter(59951714,ACTIVITY_SPSUMMON,c59951714.counterfilter)
end end
function c59951714.counterfilter(c) function c59951714.counterfilter(c)
return not c:GetSummonLocation()==LOCATION_EXTRA return c:GetSummonLocation()~=LOCATION_EXTRA
end end
function c59951714.spr(e,tp,eg,ep,ev,re,r,rp) function c59951714.spr(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -6,11 +6,11 @@ function c62980542.initial_effect(c) ...@@ -6,11 +6,11 @@ function c62980542.initial_effect(c)
e1:SetCategory(CATEGORY_DECKDES+CATEGORY_DAMAGE) e1:SetCategory(CATEGORY_DECKDES+CATEGORY_DAMAGE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCost(c62980542.discost) e1:SetTarget(c62980542.distg)
e1:SetOperation(c62980542.disop) e1:SetOperation(c62980542.disop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c62980542.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c62980542.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,3) end if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,3) end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(3) Duel.SetTargetParam(3)
......
...@@ -13,7 +13,7 @@ function c65196094.initial_effect(c) ...@@ -13,7 +13,7 @@ function c65196094.initial_effect(c)
Duel.AddCustomActivityCounter(65196094,ACTIVITY_SPSUMMON,c65196094.counterfilter) Duel.AddCustomActivityCounter(65196094,ACTIVITY_SPSUMMON,c65196094.counterfilter)
end end
function c65196094.counterfilter(c) function c65196094.counterfilter(c)
return not c:GetSummonType()==SUMMON_TYPE_SYNCHRO return c:GetSummonType()~=SUMMON_TYPE_SYNCHRO
end end
function c65196094.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c65196094.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
......
...@@ -11,7 +11,7 @@ function c79844764.initial_effect(c) ...@@ -11,7 +11,7 @@ function c79844764.initial_effect(c)
Duel.AddCustomActivityCounter(79844764,ACTIVITY_SPSUMMON,c79844764.counterfilter) Duel.AddCustomActivityCounter(79844764,ACTIVITY_SPSUMMON,c79844764.counterfilter)
end end
function c79844764.counterfilter(c) function c79844764.counterfilter(c)
return not c:GetSummonLocation()==LOCATION_EXTRA return c:GetSummonLocation()~=LOCATION_EXTRA
end end
function c79844764.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c79844764.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(79844764,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(79844764,tp,ACTIVITY_SPSUMMON)==0 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