Skip to content

Commit e0dc0fa

Browse files
committed
added Peace Core the Mad Fiend of Despair
1 parent 00cbab0 commit e0dc0fa

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

rush/c160218031.lua

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
--絶望狂魔ピース・コア
2+
--Peace Core the Mad Fiend of Despair
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Set 1 card
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetType(EFFECT_TYPE_IGNITION)
10+
e1:SetRange(LOCATION_MZONE)
11+
e1:SetCountLimit(1)
12+
e1:SetCondition(s.condition)
13+
e1:SetTarget(s.target)
14+
e1:SetOperation(s.operation)
15+
c:RegisterEffect(e1)
16+
end
17+
s.listed_names={160218032,160218033}
18+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
19+
local c=e:GetHandler()
20+
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
21+
end
22+
function s.setfilter(c)
23+
return c:IsCode(160218032,160218033) and c:IsSSetable()
24+
end
25+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
26+
if chk==0 then return Duel.IsExistingMatchingCard(s.setfilter,tp,LOCATION_GRAVE,0,1,nil) end
27+
end
28+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
29+
--Effect
30+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
31+
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.setfilter),tp,LOCATION_GRAVE,0,1,1,nil)
32+
if #g==0 then return end
33+
Duel.SSet(tp,g)
34+
end

0 commit comments

Comments
 (0)