Skip to content

Commit f546cb3

Browse files
committed
added Botanical Lion
1 parent 8e16c4f commit f546cb3

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-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,160021027}
13+
160214020,160021065,160021027,160402052}
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/c160402052.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
--ボタニカル・ライオ
2+
--Botanical Lion
3+
local s,id=GetID()
4+
function s.initial_effect(c)
5+
--atk
6+
local e1=Effect.CreateEffect(c)
7+
e1:SetType(EFFECT_TYPE_SINGLE)
8+
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
9+
e1:SetRange(LOCATION_MZONE)
10+
e1:SetCode(EFFECT_UPDATE_ATTACK)
11+
e1:SetValue(s.val)
12+
c:RegisterEffect(e1)
13+
--control
14+
local e2=Effect.CreateEffect(c)
15+
e2:SetType(EFFECT_TYPE_SINGLE)
16+
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
17+
e2:SetRange(LOCATION_MZONE)
18+
e2:SetCode(EFFECT_CANNOT_CHANGE_CONTROL)
19+
e2:SetCondition(s.condition)
20+
c:RegisterEffect(e2)
21+
end
22+
function s.val(e,c)
23+
return Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsRace,RACE_PLANT),c:GetControler(),LOCATION_MZONE,0,nil)*300
24+
end
25+
function s.condition(e)
26+
return Duel.GetCurrentPhase()==PHASE_MAIN1
27+
end

0 commit comments

Comments
 (0)