Skip to content

Commit bb62fa8

Browse files
committed
added Hydra Viper
1 parent 19c2653 commit bb62fa8

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

proc_rush.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local LEGEND_LIST={160001000,160205001,160418001,160002000,160421015,160404001,1
99
160429002,160208063,160208064,160208065,160014065,160446002,160015056,160210001,160207060,160210032,160210029,
1010
160210058,160440010,160016033,160016034,160440011,160211080,160402039,160017033,160402040,160429003,160320014,
1111
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065,
12-
160213078,160213082}
12+
160213078,160213082,160402047}
1313
-- Returns if a card is a Legend. Can be updated if a GetOT function is added to the core
1414
function Card.IsLegend(c)
1515
return c:IsHasEffect(EFFECT_IS_LEGEND) or c:IsOriginalCode(table.unpack(LEGEND_LIST))

rush/c160402047.lua

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
--トリプル・ヴァイパー
2+
--Hydra Viper
3+
--Scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Increase ATK
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_ATKCHANGE)
10+
e1:SetType(EFFECT_TYPE_IGNITION)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetCountLimit(1)
13+
e1:SetCost(s.cost)
14+
e1:SetTarget(s.target)
15+
e1:SetOperation(s.operation)
16+
c:RegisterEffect(e1)
17+
end
18+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
19+
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,LOCATION_MZONE,0,1,e:GetHandler()) end
20+
end
21+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then return e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK)==0 end
23+
end
24+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
25+
local c=e:GetHandler()
26+
--Requirement
27+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
28+
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_MZONE,0,1,1,c)
29+
if Duel.SendtoGrave(g,REASON_COST)==0 then return end
30+
--Effect
31+
local e1=Effect.CreateEffect(c)
32+
e1:SetDescription(aux.Stringid(id,1))
33+
e1:SetType(EFFECT_TYPE_SINGLE)
34+
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CLIENT_HINT)
35+
e1:SetCode(EFFECT_EXTRA_ATTACK)
36+
e1:SetValue(2)
37+
e1:SetReset(RESETS_STANDARD_PHASE_END)
38+
c:RegisterEffect(e1)
39+
end

0 commit comments

Comments
 (0)