Skip to content

Commit 0bc06a6

Browse files
authored
Added new card scripts
1 parent 8dd8758 commit 0bc06a6

12 files changed

Lines changed: 867 additions & 0 deletions

pre-release/c101305001.lua

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
--超魔剣士ブラック・カオス
2+
--Black Chaos the Ultimate Magical Swordsman
3+
--Scripted by Eerie Code
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
c:EnableReviveLimit()
7+
c:AddMustBeSpecialSummoned()
8+
--Must be Special Summoned (from your hand) by shuffling 1 Spellcaster or Warrior Ritual Monster from your hand or GY into the Deck
9+
local e0=Effect.CreateEffect(c)
10+
e0:SetType(EFFECT_TYPE_FIELD)
11+
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
12+
e0:SetCode(EFFECT_SPSUMMON_PROC)
13+
e0:SetRange(LOCATION_HAND)
14+
e0:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH)
15+
e0:SetCondition(s.spcon)
16+
e0:SetTarget(s.sptg)
17+
e0:SetOperation(s.spop)
18+
c:RegisterEffect(e0)
19+
--You can discard this card; place 1 Continuous Trap that mentions "Ritual of Light and Darkness" from your Deck or GY, face-up on your field
20+
local e1=Effect.CreateEffect(c)
21+
e1:SetDescription(aux.Stringid(id,0))
22+
e1:SetType(EFFECT_TYPE_IGNITION)
23+
e1:SetRange(LOCATION_HAND)
24+
e1:SetCost(Cost.SelfDiscard)
25+
e1:SetTarget(s.pltg)
26+
e1:SetOperation(s.plop)
27+
c:RegisterEffect(e1)
28+
--Unaffected by your opponent's activated effects while you have a Ritual Spell in your GY
29+
local e2=Effect.CreateEffect(c)
30+
e2:SetType(EFFECT_TYPE_SINGLE)
31+
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
32+
e2:SetCode(EFFECT_IMMUNE_EFFECT)
33+
e2:SetRange(LOCATION_MZONE)
34+
e2:SetCondition(function(e) return Duel.IsExistingMatchingCard(Card.IsRitualSpell,e:GetHandlerPlayer(),LOCATION_GRAVE,0,1,nil) end)
35+
e2:SetValue(function(e,te) return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and te:IsActivated() end)
36+
c:RegisterEffect(e2)
37+
--Once per turn: You can banish 2 cards your opponent controls
38+
local e3=Effect.CreateEffect(c)
39+
e3:SetDescription(aux.Stringid(id,1))
40+
e3:SetCategory(CATEGORY_REMOVE)
41+
e3:SetType(EFFECT_TYPE_IGNITION)
42+
e3:SetRange(LOCATION_MZONE)
43+
e3:SetCountLimit(1)
44+
e3:SetTarget(s.rmtg)
45+
e3:SetOperation(s.rmop)
46+
c:RegisterEffect(e3)
47+
end
48+
s.listed_names={CARD_RITUAL_OF_LIGHT_AND_DARKNESS}
49+
function s.spconfilter(c)
50+
return c:IsRace(RACE_SPELLCASTER|RACE_WARRIOR) and c:IsRitualMonster() and c:IsAbleToDeckAsCost()
51+
end
52+
function s.spcon(e,c)
53+
if c==nil then return true end
54+
local tp=e:GetHandlerPlayer()
55+
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spconfilter,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,nil)
56+
end
57+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
58+
local g=Duel.GetMatchingGroup(s.spconfilter,tp,LOCATION_HAND|LOCATION_GRAVE,0,nil)
59+
local sg=aux.SelectUnselectGroup(g,e,tp,1,1,nil,1,tp,HINTMSG_TODECK,nil,nil,true)
60+
if #sg>0 then
61+
e:SetLabelObject(sg)
62+
return true
63+
end
64+
return false
65+
end
66+
function s.spop(e,tp,eg,ep,ev,re,r,rp,c)
67+
local g=e:GetLabelObject()
68+
if g then
69+
local sc=g:GetFirst()
70+
if sc:IsLocation(LOCATION_HAND) then
71+
Duel.ConfirmCards(1-tp,sc)
72+
else
73+
Duel.HintSelection(sc)
74+
end
75+
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST)
76+
end
77+
end
78+
function s.plfilter(c,tp)
79+
return c:IsContinuousTrap() and c:ListsCode(CARD_RITUAL_OF_LIGHT_AND_DARKNESS) and not c:IsForbidden() and c:CheckUniqueOnField(tp)
80+
end
81+
function s.pltg(e,tp,eg,ep,ev,re,r,rp,chk)
82+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
83+
and Duel.IsExistingMatchingCard(s.plfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil,tp) end
84+
Duel.SetPossibleOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,tp,0)
85+
end
86+
function s.plop(e,tp,eg,ep,ev,re,r,rp)
87+
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
88+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
89+
local sc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.plfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,tp):GetFirst()
90+
if sc then
91+
Duel.MoveToField(sc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
92+
end
93+
end
94+
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
95+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,2,nil) end
96+
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,2,1-tp,LOCATION_ONFIELD)
97+
end
98+
function s.rmop(e,tp,eg,ep,ev,re,r,rp)
99+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
100+
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,2,2,nil)
101+
if #g==2 then
102+
Duel.HintSelection(g)
103+
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
104+
end
105+
end

pre-release/c101305002.lua

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
--混沌の魔王-スカル・デーモン
2+
--Skull Archfiend of Chaos
3+
--scripted by pyrQ
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--If this card is in your hand or GY: You can target 3 other cards in the GYs and/or face-up banishment, including a card that mentions "Ritual of Light and Darkness"; place them on the bottom of the Deck in any order, and if you do, Special Summon this card
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON)
10+
e1:SetType(EFFECT_TYPE_IGNITION)
11+
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
12+
e1:SetRange(LOCATION_HAND|LOCATION_GRAVE)
13+
e1:SetCountLimit(1,{id,0})
14+
e1:SetTarget(s.tdsptg)
15+
e1:SetOperation(s.tdspop)
16+
c:RegisterEffect(e1)
17+
--If this card is sent to the GY: You can send 1 Ritual Spell from your hand or Deck to the GY; add 1 Ritual Monster mentioned on that card from your Deck to your hand
18+
local e2=Effect.CreateEffect(c)
19+
e2:SetDescription(aux.Stringid(id,1))
20+
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
21+
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
22+
e2:SetProperty(EFFECT_FLAG_DELAY)
23+
e2:SetCode(EVENT_TO_GRAVE)
24+
e2:SetCountLimit(1,{id,1})
25+
e2:SetCost(s.thcost)
26+
e2:SetTarget(s.thtg)
27+
e2:SetOperation(s.thop)
28+
c:RegisterEffect(e2)
29+
end
30+
s.listed_names={CARD_RITUAL_OF_LIGHT_AND_DARKNESS}
31+
function s.rescon(sg,e,tp,mg)
32+
return sg:IsExists(Card.ListsCode,1,nil,CARD_RITUAL_OF_LIGHT_AND_DARKNESS)
33+
end
34+
function s.tdsptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
35+
if chkc then return false end
36+
local c=e:GetHandler()
37+
local g=Duel.GetTargetGroup(aux.FaceupFilter(Card.IsAbleToDeck),tp,LOCATION_GRAVE|LOCATION_REMOVED,LOCATION_GRAVE|LOCATION_REMOVED,c)
38+
if chk==0 then return #g>=3 and aux.SelectUnselectGroup(g,e,tp,3,3,s.rescon,0)
39+
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
40+
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
41+
local tg=aux.SelectUnselectGroup(g,e,tp,3,3,s.rescon,1,tp,HINTMSG_TODECK)
42+
Duel.SetTargetCard(tg)
43+
Duel.SetOperationInfo(0,CATEGORY_TODECK,tg,3,tp,0)
44+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,0)
45+
end
46+
function s.tdspop(e,tp,eg,ep,ev,re,r,rp)
47+
local tg=Duel.GetTargetCards(e)
48+
if #tg>0 and Duel.SendtoDeck(tg,nil,SEQ_DECKBOTTOM,REASON_EFFECT)>0 and tg:IsExists(Card.IsLocation,1,nil,LOCATION_DECK|LOCATION_EXTRA) then
49+
local tg_your,tg_opp=tg:Split(Card.IsControler,nil,tp)
50+
local your_count=tg_your:FilterCount(Card.IsLocation,nil,LOCATION_DECK)
51+
local opp_count=tg_opp:FilterCount(Card.IsLocation,nil,LOCATION_DECK)
52+
if your_count>=2 then
53+
Duel.SortDeckbottom(tp,tp,your_count)
54+
end
55+
if opp_count>=2 then
56+
Duel.SortDeckbottom(tp,1-tp,opp_count)
57+
end
58+
local c=e:GetHandler()
59+
if c:IsRelateToEffect(e) then
60+
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
61+
end
62+
end
63+
end
64+
function s.thcostfilter(c,tp)
65+
return c:IsRitualSpell() and c:IsAbleToGraveAsCost() and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil,c)
66+
end
67+
function s.thfilter(c,rit_spell)
68+
return c:IsRitualMonster() and rit_spell:ListsCode(c:GetCode())and c:IsAbleToHand()
69+
end
70+
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
71+
if chk==0 then return Duel.IsExistingMatchingCard(s.thcostfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,tp) end
72+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
73+
local sc=Duel.SelectMatchingCard(tp,s.thcostfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,tp):GetFirst()
74+
Duel.SendtoGrave(sc,REASON_COST)
75+
e:SetLabelObject(sc)
76+
end
77+
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
78+
if chk==0 then return true end
79+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
80+
end
81+
function s.thop(e,tp,eg,ep,ev,re,r,rp)
82+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
83+
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil,e:GetLabelObject())
84+
if #g>0 then
85+
Duel.SendtoHand(g,nil,REASON_EFFECT)
86+
Duel.ConfirmCards(1-tp,g)
87+
end
88+
end

pre-release/c101305003.lua

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
--エルフの聖賢者
2+
--Mystical Celtic Sage
3+
--Scripted by Eerie Code
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--If this card is Normal or Special Summoned: You can activate this effect; you can only Special Summon from the Extra Deck once for the rest of this turn, also reveal your entire hand, and if there is a card that mentions "Ritual of Light and Darkness" in it, you can draw 3 cards, then discard 2 cards
7+
local e1a=Effect.CreateEffect(c)
8+
e1a:SetDescription(aux.Stringid(id,0))
9+
e1a:SetCategory(CATEGORY_DRAW+CATEGORY_HANDES)
10+
e1a:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
11+
e1a:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_PLAYER_TARGET)
12+
e1a:SetCode(EVENT_SUMMON_SUCCESS)
13+
e1a:SetCountLimit(1,{id,0})
14+
e1a:SetTarget(s.drtg)
15+
e1a:SetOperation(s.drop)
16+
c:RegisterEffect(e1a)
17+
local e1b=e1a:Clone()
18+
e1b:SetCode(EVENT_SPSUMMON_SUCCESS)
19+
c:RegisterEffect(e1b)
20+
--You can Tribute this card; Special Summon 1 Ritual Monster that mentions "Ritual of Light and Darkness" from your hand
21+
local e2=Effect.CreateEffect(c)
22+
e2:SetDescription(aux.Stringid(id,1))
23+
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
24+
e2:SetType(EFFECT_TYPE_IGNITION)
25+
e2:SetRange(LOCATION_MZONE)
26+
e2:SetCountLimit(1,{id,1})
27+
e2:SetCost(Cost.SelfTribute)
28+
e2:SetTarget(s.sptg)
29+
e2:SetOperation(s.spop)
30+
c:RegisterEffect(e2)
31+
end
32+
s.listed_names={CARD_RITUAL_OF_LIGHT_AND_DARKNESS}
33+
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
34+
if chk==0 then return not Duel.IsExistingMatchingCard(Card.IsPublic,tp,LOCATION_HAND,0,1,nil) end
35+
Duel.SetPossibleOperationInfo(0,CATEGORY_DRAW,nil,0,tp,3)
36+
Duel.SetPossibleOperationInfo(0,CATEGORY_HANDES,nil,0,tp,2)
37+
end
38+
function s.drop(e,tp,eg,ep,ev,re,r,rp)
39+
local c=e:GetHandler()
40+
aux.RegisterClientHint(c,nil,tp,1,0,aux.Stringid(id,2))
41+
--You can only Special Summon from the Extra Deck once for the rest of this turn
42+
local e1=Effect.CreateEffect(c)
43+
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
44+
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
45+
e1:SetCondition(s.sprestrictioncon)
46+
e1:SetOperation(s.sprestrictionop)
47+
e1:SetReset(RESET_PHASE|PHASE_END)
48+
Duel.RegisterEffect(e1,tp)
49+
if Duel.IsExistingMatchingCard(Card.IsPublic,tp,LOCATION_HAND,0,1,nil) then return end
50+
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
51+
Duel.ConfirmCards(1-tp,g)
52+
Duel.ShuffleHand(tp)
53+
if g:IsExists(Card.ListsCode,1,nil,CARD_RITUAL_OF_LIGHT_AND_DARKNESS) and Duel.IsPlayerCanDraw(tp,3)
54+
and Duel.SelectYesNo(tp,aux.Stringid(id,3)) and Duel.Draw(tp,3,REASON_EFFECT)==3 then
55+
Duel.ShuffleHand(tp)
56+
Duel.BreakEffect()
57+
Duel.DiscardHand(tp,nil,2,2,REASON_EFFECT|REASON_DISCARD)
58+
end
59+
end
60+
function s.sprestrictionconfilter(c,tp)
61+
return c:IsSummonPlayer(tp) and c:IsSummonLocation(LOCATION_EXTRA)
62+
end
63+
function s.sprestrictioncon(e,tp,eg,ep,ev,re,r,rp)
64+
return eg:IsExists(s.sprestrictionconfilter,1,nil,tp)
65+
end
66+
function s.sprestrictionop(e,tp,eg,ep,ev,re,r,rp)
67+
local c=e:GetHandler()
68+
--You can only Special Summon from the Extra Deck once for the rest of this turn
69+
local e1=Effect.CreateEffect(c)
70+
e1:SetType(EFFECT_TYPE_FIELD)
71+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
72+
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
73+
e1:SetTargetRange(1,0)
74+
e1:SetTarget(function(e,c) return c:IsLocation(LOCATION_EXTRA) end)
75+
e1:SetReset(RESET_PHASE|PHASE_END)
76+
Duel.RegisterEffect(e1,tp)
77+
--"Clock Lizard" check
78+
aux.addTempLizardCheck(c,tp)
79+
end
80+
function s.spfilter(c,e,tp)
81+
return c:IsRitualMonster() and c:ListsCode(CARD_RITUAL_OF_LIGHT_AND_DARKNESS) and c:IsCanBeSpecialSummoned(e,0,tp,false,true)
82+
end
83+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
84+
if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0
85+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
86+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
87+
end
88+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
89+
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
90+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
91+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
92+
if #g>0 then
93+
Duel.SpecialSummon(g,0,tp,tp,false,true,POS_FACEUP)
94+
end
95+
end

pre-release/c101305004.lua

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
--グリフォー
2+
--Gurifoh
3+
--scripted by pyrQ
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--(Quick Effect): You can discard this card, then activate 1 of these effects;
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetType(EFFECT_TYPE_QUICK_O)
10+
e1:SetCode(EVENT_FREE_CHAIN)
11+
e1:SetRange(LOCATION_HAND)
12+
e1:SetCountLimit(1,id)
13+
e1:SetCost(Cost.SelfDiscard)
14+
e1:SetTarget(s.efftg)
15+
e1:SetOperation(s.effop)
16+
e1:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E)
17+
c:RegisterEffect(e1)
18+
--For the Ritual Summon of exactly 1 Level 8 Ritual Monster with a card effect that requires use of monsters, this card can be used as the entire Tribute
19+
Ritual.AddWholeLevelTribute(c,aux.FilterBoolFunction(Card.IsLevel,8))
20+
end
21+
s.listed_names={CARD_RITUAL_OF_LIGHT_AND_DARKNESS}
22+
function s.setfilter(c)
23+
return (c:IsQuickPlaySpell() or c:IsTrap()) and c:ListsCode(CARD_RITUAL_OF_LIGHT_AND_DARKNESS) and c:IsSSetable()
24+
end
25+
function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
26+
local b1=true
27+
local b2=Duel.IsExistingMatchingCard(s.setfilter,tp,LOCATION_DECK,0,1,nil)
28+
if chk==0 then return b1 or b2 end
29+
local op=Duel.SelectEffect(tp,
30+
{b1,aux.Stringid(id,1)},
31+
{b2,aux.Stringid(id,2)})
32+
e:SetLabel(op)
33+
if op==1 then
34+
e:SetCategory(0)
35+
elseif op==2 then
36+
e:SetCategory(CATEGORY_SET)
37+
Duel.SetOperationInfo(0,CATEGORY_SET,nil,1,tp,LOCATION_DECK)
38+
end
39+
end
40+
function s.effop(e,tp,eg,ep,ev,re,r,rp)
41+
local op=e:GetLabel()
42+
local c=e:GetHandler()
43+
if op==1 then
44+
--● The next battle or effect damage you take this turn will become 0
45+
local e1=Effect.CreateEffect(c)
46+
e1:SetDescription(aux.Stringid(id,3))
47+
e1:SetType(EFFECT_TYPE_FIELD)
48+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
49+
e1:SetCode(EFFECT_CHANGE_DAMAGE)
50+
e1:SetTargetRange(1,0)
51+
e1:SetValue(s.damval)
52+
e1:SetReset(RESET_PHASE|PHASE_END)
53+
Duel.RegisterEffect(e1,tp)
54+
elseif op==2 then
55+
--● Set 1 Quick-Play Spell or Trap that mentions "Ritual of Light and Darkness" from your Deck. It can be activated this turn
56+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
57+
local sc=Duel.SelectMatchingCard(tp,s.setfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
58+
if sc and Duel.SSet(tp,sc)>0 then
59+
local eff_code=sc:IsQuickPlaySpell() and EFFECT_QP_ACT_IN_SET_TURN or EFFECT_TRAP_ACT_IN_SET_TURN
60+
--It can be activated this turn
61+
local e2=Effect.CreateEffect(c)
62+
e2:SetDescription(aux.Stringid(id,4))
63+
e2:SetType(EFFECT_TYPE_SINGLE)
64+
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_CLIENT_HINT)
65+
e2:SetCode(eff_code)
66+
e2:SetReset(RESETS_STANDARD_PHASE_END)
67+
sc:RegisterEffect(e2)
68+
end
69+
end
70+
end
71+
function s.damval(e,re,val,r,rp,rc)
72+
if r&(REASON_BATTLE|REASON_EFFECT)>0 then
73+
Duel.Hint(HINT_CARD,0,id)
74+
e:Reset()
75+
return 0
76+
end
77+
return val
78+
end

0 commit comments

Comments
 (0)