Skip to content

Commit 1e13bb8

Browse files
committed
added Excutie Prouty Frontiere
1 parent 8364638 commit 1e13bb8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

rush/c160214033.lua

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
--エクスキューティー・プラウティ・F
2+
--Excutie Prouty Frontiere
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--fusion material
7+
c:EnableReviveLimit()
8+
Fusion.AddProcMix(c,true,true,160205037,160205032)
9+
Fusion.AddContactProc(c,s.contactfil,s.contactop,nil,nil,SUMMON_TYPE_FUSION,nil,false)
10+
--Lose ATK/DEF
11+
local e1=Effect.CreateEffect(c)
12+
e1:SetType(EFFECT_TYPE_FIELD)
13+
e1:SetCode(EFFECT_UPDATE_ATTACK)
14+
e1:SetRange(LOCATION_MZONE)
15+
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
16+
e1:SetTarget(aux.NOT(aux.TargetBoolFunction(Card.IsLevel,6)))
17+
e1:SetValue(-600)
18+
c:RegisterEffect(e1)
19+
local e2=e1:Clone()
20+
e2:SetCode(EFFECT_UPDATE_DEFENSE)
21+
c:RegisterEffect(e2)
22+
--gain LP
23+
local e2=Effect.CreateEffect(c)
24+
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
25+
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
26+
e2:SetCode(EVENT_BATTLE_DESTROYING)
27+
e2:SetRange(LOCATION_MZONE)
28+
e2:SetOperation(s.damop)
29+
c:RegisterEffect(e2)
30+
end
31+
function s.contactfil(tp)
32+
return Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsAbleToDeckOrExtraAsCost),tp,LOCATION_ONFIELD,0,nil)
33+
end
34+
function s.contactop(g,tp)
35+
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST+REASON_MATERIAL)
36+
end
37+
function s.damop(e,tp,eg,ep,ev,re,r,rp)
38+
local bc=e:GetHandler():GetBattleTarget()
39+
if bc and bc:IsLocation(LOCATION_GRAVE) then
40+
Duel.Recover(tp,600,REASON_EFFECT)
41+
end
42+
end

0 commit comments

Comments
 (0)