Skip to content

Commit 9b63f67

Browse files
committed
added Mormolith
1 parent b5da12a commit 9b63f67

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

proc_rush.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local LEGEND_LIST={160001000,160205001,160418001,160002000,160421015,160404001,1
1010
160210058,160440010,160016033,160016034,160440011,160211080,160402039,160017033,160402040,160429003,160320014,
1111
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065,
1212
160213078,160213082,160402047,160213084,160020059,160213076,160020001,160020040,160020000,160214052,160323029,
13-
160214020,160021065}
13+
160214020,160021065,160021027}
1414
-- Returns if a card is a Legend. Can be updated if a GetOT function is added to the core
1515
function Card.IsLegend(c)
1616
return c:IsHasEffect(EFFECT_IS_LEGEND) or c:IsOriginalCode(table.unpack(LEGEND_LIST))

rush/c160021027.lua

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
--モーム
2+
--Mormolith
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Destroy 1 EARTH monster
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_DESTROY)
10+
e1:SetType(EFFECT_TYPE_IGNITION)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetCountLimit(1)
13+
e1:SetTarget(s.target)
14+
e1:SetOperation(s.operation)
15+
c:RegisterEffect(e1)
16+
end
17+
function s.filter(c)
18+
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_EARTH) and not c:IsMaximumModeSide()
19+
end
20+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
21+
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end
22+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,tp,0)
23+
end
24+
function s.desfilter(c,atk)
25+
return c:IsFaceup() and c:IsDefenseBelow(atk) and not c:IsMaximumMode()
26+
end
27+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
28+
--Effect
29+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
30+
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil)
31+
if #g==0 then return end
32+
Duel.HintSelection(g)
33+
local g2=Duel.GetMatchingGroup(s.desfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil,g:GetFirst():GetAttack())
34+
g:Merge(g2)
35+
Duel.Destroy(g,REASON_EFFECT)
36+
end

0 commit comments

Comments
 (0)