Skip to content

Commit e201aba

Browse files
committed
added Home of the Charmers
1 parent 5fd18ff commit e201aba

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

rush/c160218021.lua

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
--ディパーチャー・ゾーン
2+
--Home of the Charmers
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Activate
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetType(EFFECT_TYPE_ACTIVATE)
9+
e1:SetCode(EVENT_FREE_CHAIN)
10+
c:RegisterEffect(e1)
11+
--Atk
12+
local e2=Effect.CreateEffect(c)
13+
e2:SetType(EFFECT_TYPE_FIELD)
14+
e2:SetCode(EFFECT_UPDATE_ATTACK)
15+
e2:SetRange(LOCATION_FZONE)
16+
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
17+
e2:SetTarget(s.tg)
18+
e2:SetValue(500)
19+
c:RegisterEffect(e2)
20+
--Normal Summon without tribute
21+
local e3=Effect.CreateEffect(c)
22+
e3:SetDescription(aux.Stringid(id,1))
23+
e3:SetType(EFFECT_TYPE_FIELD)
24+
e3:SetCode(EFFECT_SUMMON_PROC)
25+
e3:SetRange(LOCATION_FZONE)
26+
e3:SetTargetRange(LOCATION_HAND,LOCATION_HAND)
27+
e3:SetCondition(s.ntcon)
28+
e3:SetTarget(aux.FieldSummonProcTg(s.nttg))
29+
c:RegisterEffect(e3)
30+
end
31+
function s.tg(e,c)
32+
return c:IsRace(RACE_SPELLCASTER) and c:IsLevelBetween(3,5) and c:GetBaseDefense()==1500
33+
end
34+
function s.ntcon(e,c,minc)
35+
if c==nil then return true end
36+
return minc==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
37+
end
38+
function s.nttg(e,c)
39+
return c:IsLevel(5) and c:IsRace(RACE_SPELLCASTER) and c:IsDefense(1500)
40+
end

0 commit comments

Comments
 (0)