Commit 2d9a0cc9 authored by mercury233's avatar mercury233

update

parent 3b095f5c
......@@ -24,12 +24,8 @@ function c18605135.initial_effect(c)
e3:SetCondition(c18605135.sdcon)
c:RegisterEffect(e3)
end
function c18605135.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c18605135.check()
return Duel.IsExistingMatchingCard(c18605135.filter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c18605135.actcon(e,tp,eg,ep,ev,re,r,rp)
return c18605135.check()
......
......@@ -52,12 +52,8 @@ function c19089195.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function c19089195.efilter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c19089195.econ(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c19089195.efilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c19089195.costfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_WATER) and c:IsAbleToRemoveAsCost()
......
......@@ -32,12 +32,8 @@ end
function c19801646.efilter(e,te)
return te:IsActiveType(TYPE_MONSTER) and te:GetOwner()~=e:GetOwner()
end
function c19801646.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c19801646.econ(e)
return Duel.IsExistingMatchingCard(c19801646.filter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c19801646.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -10,12 +10,8 @@ function c24128274.initial_effect(c)
e1:SetValue(c24128274.efilter)
c:RegisterEffect(e1)
end
function c24128274.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c24128274.econ(e)
return Duel.IsExistingMatchingCard(c24128274.filter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c24128274.efilter(e,te)
return te:IsActiveType(TYPE_SPELL)
......
......@@ -7,10 +7,6 @@ function c24435369.initial_effect(c)
e1:SetValue(1)
c:RegisterEffect(e1)
end
function c24435369.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c24435369.dircon(e)
return Duel.IsExistingMatchingCard(c24435369.filter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
......@@ -50,12 +50,8 @@ function c34302287.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tc,REASON_EFFECT)
end
end
function c34302287.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c34302287.handcon(e)
return Duel.IsExistingMatchingCard(c34302287.filter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c34302287.efilter(c,tp)
return c:IsFaceup() and c:IsType(TYPE_NORMAL)
......
......@@ -18,12 +18,8 @@ function c3643300.initial_effect(c)
e2:SetCondition(c3643300.econ)
c:RegisterEffect(e2)
end
function c3643300.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c3643300.econ(e)
return Duel.IsExistingMatchingCard(c3643300.filter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c3643300.efilter(e,te)
return te:IsActiveType(TYPE_SPELL)
......
......@@ -9,12 +9,8 @@ function c46955770.initial_effect(c)
e1:SetValue(c46955770.efilter)
c:RegisterEffect(e1)
end
function c46955770.filter(c)
return c:IsFaceup() and c:IsCode(47355498)
end
function c46955770.con(e)
return Duel.IsExistingMatchingCard(c46955770.filter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(47355498)
return Duel.IsEnvironment(47355498)
end
function c46955770.efilter(e,te)
return te:GetOwner()~=e:GetOwner()
......
......@@ -48,12 +48,8 @@ function c58139128.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev)
end
end
function c58139128.actfilter(c)
return c:IsFaceup() and c:IsCode(47355498)
end
function c58139128.econ(e)
return Duel.IsExistingMatchingCard(c58139128.actfilter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(47355498)
return Duel.IsEnvironment(47355498)
end
function c58139128.efilter1(e,re,tp)
return re:GetHandler():IsType(TYPE_FIELD) and re:IsHasType(EFFECT_TYPE_ACTIVATE)
......
......@@ -75,12 +75,8 @@ function c61397885.activate(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e4)
end
end
function c61397885.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c61397885.handcon(e)
return Duel.IsExistingMatchingCard(c61397885.filter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c61397885.efilter(c,tp)
return c:IsFaceup() and c:IsType(TYPE_NORMAL)
......
......@@ -6,10 +6,6 @@ function c64342551.initial_effect(c)
e1:SetCondition(c64342551.dircon)
c:RegisterEffect(e1)
end
function c64342551.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c64342551.dircon(e)
return Duel.IsExistingMatchingCard(c64342551.filter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
......@@ -27,19 +27,14 @@ end
function c70000776.cfilter1(c)
return c:IsFaceup() and c:IsSetCard(0x2e)
end
function c70000776.cfilter2(c)
return c:IsFaceup() and c:IsCode(47355498)
end
function c70000776.actcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c70000776.cfilter1,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
and (Duel.IsExistingMatchingCard(c70000776.cfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(47355498))
and Duel.IsEnvironment(47355498)
end
function c70000776.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return not c:IsSetCard(0x2e)
end
function c70000776.sdcon(e)
return not Duel.IsExistingMatchingCard(c70000776.cfilter1,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
or (not Duel.IsExistingMatchingCard(c70000776.cfilter2,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
and not Duel.IsEnvironment(47355498))
or not Duel.IsEnvironment(47355498)
end
......@@ -13,12 +13,8 @@ function c82685480.initial_effect(c)
e1:SetOperation(c82685480.activate)
c:RegisterEffect(e1)
end
function c82685480.cfilter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c82685480.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c82685480.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c82685480.filter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_WATER) and c:GetOriginalLevel()>=5
......
......@@ -10,12 +10,8 @@ function c90337190.initial_effect(c)
e1:SetValue(c90337190.efilter)
c:RegisterEffect(e1)
end
function c90337190.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c90337190.econ(e)
return Duel.IsExistingMatchingCard(c90337190.filter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c90337190.efilter(e,te)
return te:IsActiveType(TYPE_SPELL)
......
......@@ -14,13 +14,9 @@ end
function c90434657.cfilter1(c)
return c:IsFaceup() and c:IsSetCard(0x2e)
end
function c90434657.cfilter2(c)
return c:IsFaceup() and c:IsCode(47355498)
end
function c90434657.condition(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(c90434657.cfilter1,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
or (not Duel.IsExistingMatchingCard(c90434657.cfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
and not Duel.IsEnvironment(47355498)) then return false end
or not Duel.IsEnvironment(47355498) then return false end
if not Duel.IsChainNegatable(ev) then return false end
return re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
......
......@@ -10,12 +10,8 @@ function c95614612.initial_effect(c)
e1:SetValue(c95614612.efilter)
c:RegisterEffect(e1)
end
function c95614612.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c95614612.econ(e)
return Duel.IsExistingMatchingCard(c95614612.filter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c95614612.efilter(e,te)
return te:IsActiveType(TYPE_SPELL)
......
......@@ -63,12 +63,8 @@ function c97795930.winop(e,tp,eg,ep,ev,re,r,rp)
Duel.Win(tp,WIN_REASON_CELESTIAL_WHIRLPOOL)
end
end
function c97795930.cfilter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c97795930.handcon(e)
return Duel.IsExistingMatchingCard(c97795930.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055)
return Duel.IsEnvironment(22702055)
end
function c97795930.repfilter(c,tp)
return c:IsFaceup() and c:IsType(TYPE_NORMAL) and c:IsLocation(LOCATION_MZONE)
......
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