Commit 4fe40a5e authored by wind2009's avatar wind2009 Committed by GitHub

Update for Elemental lord Event

parent 7d6e4a07
......@@ -33,11 +33,26 @@ function c13959634.initial_effect(c)
e4:SetOperation(c13959634.leaveop)
c:RegisterEffect(e4)
end
-- function c13959634.spcon(e,c)
-- if c==nil then return true end
-- return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
-- Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_WATER)==5
-- end
-- Code: The Elemental Awakening
function c13959634.spfilter1(c,tp)
return Duel.IsExistingMatchingCard(c13959634.spfilter2,tp,LOCATION_GRAVE,0,2,c,c:GetAttribute())
end
function c13959634.spfilter2(c,att)
return c:IsAttribute(att)
end
function c13959634.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_WATER)==5
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c13959634.spfilter1,tp,LOCATION_GRAVE,0,1,nil,tp)
end
function c13959634.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,2)
......
......@@ -34,11 +34,26 @@ function c35842855.initial_effect(c)
e4:SetOperation(c35842855.leaveop)
c:RegisterEffect(e4)
end
-- function c35842855.spcon(e,c)
-- if c==nil then return true end
-- return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
-- Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_FIRE)==5
-- end
-- Code: The Elemental Awakening
function c35842855.spfilter1(c,tp)
return Duel.IsExistingMatchingCard(c35842855.spfilter2,tp,LOCATION_GRAVE,0,2,c,c:GetAttribute())
end
function c35842855.spfilter2(c,att)
return c:IsAttribute(att)
end
function c35842855.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_FIRE)==5
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c35842855.spfilter1,tp,LOCATION_GRAVE,0,1,nil,tp)
end
function c35842855.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end
......
......@@ -33,11 +33,26 @@ function c53027855.initial_effect(c)
e4:SetOperation(c53027855.leaveop)
c:RegisterEffect(e4)
end
-- function c53027855.spcon(e,c)
-- if c==nil then return true end
-- return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
-- Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_WIND)==5
-- end
-- Code: The Elemental Awakening
function c53027855.spfilter1(c,tp)
return Duel.IsExistingMatchingCard(c53027855.spfilter2,tp,LOCATION_GRAVE,0,2,c,c:GetAttribute())
end
function c53027855.spfilter2(c,att)
return c:IsAttribute(att)
end
function c53027855.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_WIND)==5
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c53027855.spfilter1,tp,LOCATION_GRAVE,0,1,nil,tp)
end
function c53027855.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
......
......@@ -33,11 +33,26 @@ function c59281822.initial_effect(c)
e4:SetOperation(c59281822.leaveop)
c:RegisterEffect(e4)
end
-- function c59281822.spcon(e,c)
-- if c==nil then return true end
-- return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
-- Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_DARK)==5
-- end
-- Code: The Elemental Awakening
function c59281822.spfilter1(c,tp)
return Duel.IsExistingMatchingCard(c59281822.spfilter2,tp,LOCATION_GRAVE,0,2,c,c:GetAttribute())
end
function c59281822.spfilter2(c,att)
return c:IsAttribute(att)
end
function c59281822.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_DARK)==5
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c59281822.spfilter1,tp,LOCATION_GRAVE,0,1,nil,tp)
end
function c59281822.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
......
......@@ -34,11 +34,26 @@ function c61468779.initial_effect(c)
e4:SetOperation(c61468779.leaveop)
c:RegisterEffect(e4)
end
-- function c61468779.spcon(e,c)
-- if c==nil then return true end
-- return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
-- Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_EARTH)==5
-- end
-- Code: The Elemental Awakening
function c61468779.spfilter1(c,tp)
return Duel.IsExistingMatchingCard(c61468779.spfilter2,tp,LOCATION_GRAVE,0,2,c,c:GetAttribute())
end
function c61468779.spfilter2(c,att)
return c:IsAttribute(att)
end
function c61468779.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_EARTH)==5
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c61468779.spfilter1,tp,LOCATION_GRAVE,0,1,nil,tp)
end
function c61468779.filter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
......
......@@ -33,11 +33,26 @@ function c8192327.initial_effect(c)
e4:SetOperation(c8192327.leaveop)
c:RegisterEffect(e4)
end
-- function c8192327.spcon(e,c)
-- if c==nil then return true end
-- return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
-- Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT)==5
-- end
-- Code: The Elemental Awakening
function c8192327.spfilter1(c,tp)
return Duel.IsExistingMatchingCard(c8192327.spfilter2,tp,LOCATION_GRAVE,0,2,c,c:GetAttribute())
end
function c8192327.spfilter2(c,att)
return c:IsAttribute(att)
end
function c8192327.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.GetMatchingGroupCount(Card.IsAttribute,c:GetControler(),LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT)==5
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c8192327.spfilter1,tp,LOCATION_GRAVE,0,1,nil,tp)
end
function c8192327.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil)
......
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