Skip to content

Commit b5d74ee

Browse files
authored
Small script updates
- Fiend Piece Golem: Shouldn't be able to use or resolve its Level changing effect if it's already Level 1. - Surprise Fusion: Should be considered to mention "Surprise Token". - The Ruler's Rumbling: Added player hint for its 2nd effect.
1 parent 13d1937 commit b5d74ee

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

official/c70491413.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3535
end
3636
if cl>=3 and Duel.IsPlayerCanDiscardDeck(tp,1) then
3737
if break_chk then Duel.BreakEffect() end
38+
break_chk=true
3839
Duel.DiscardDeck(tp,1,REASON_EFFECT)
3940
end
4041
if cl>=4 then

pre-release/c100450016.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function s.initial_effect(c)
2626
e2:SetOperation(s.tokenop)
2727
c:RegisterEffect(e2)
2828
end
29+
s.listed_names={TOKEN_SURPRISE}
2930
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
3031
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
3132
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end

pre-release/c101304103.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function s.initial_effect(c)
2222
e2:SetProperty(EFFECT_FLAG_DELAY)
2323
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
2424
e2:SetCountLimit(1,{id,1})
25+
e2:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsLevelAbove(2) end end)
2526
e2:SetOperation(s.lvchangeop)
2627
c:RegisterEffect(e2)
2728
--Special Summon 1 Level 4 or lower Fiend monster from your GY
@@ -58,7 +59,7 @@ function s.selfspop(e,tp,eg,ep,ev,re,r,rp)
5859
end
5960
function s.lvchangeop(e,tp,eg,ep,ev,re,r,rp)
6061
local c=e:GetHandler()
61-
if c:IsRelateToEffect(e) and c:IsFaceup() and c:HasLevel() then
62+
if c:IsRelateToEffect(e) and c:IsFaceup() and c:IsLevelAbove(2) then
6263
local b1=c:IsLevelAbove(2)
6364
local b2=c:IsLevelAbove(3)
6465
local lv=Duel.SelectEffect(tp,

pre-release/c101304106.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function s.thsptg(e,tp,eg,ep,ev,re,r,rp,chk)
4040
end
4141
function s.thspop(e,tp,eg,ep,ev,re,r,rp)
4242
local mmz_chk=Duel.GetLocationCount(tp,LOCATION_MZONE)>0
43-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
43+
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,2))
4444
local sc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.thspfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,e,tp,mmz_chk):GetFirst()
4545
if not sc then return end
4646
aux.ToHandOrElse(sc,tp,
@@ -54,7 +54,7 @@ function s.thspop(e,tp,eg,ep,ev,re,r,rp)
5454
end
5555
Duel.SpecialSummonComplete()
5656
end,
57-
aux.Stringid(id,2)
57+
aux.Stringid(id,3)
5858
)
5959
end
6060
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)

pre-release/c101304108.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,17 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
7171
end
7272
if ct>=3 then
7373
if breakeff then Duel.BreakEffect() end
74+
local c=e:GetHandler()
75+
local reset_count=Duel.IsTurnPlayer(tp) and 2 or 1
76+
aux.RegisterClientHint(c,nil,tp,1,0,aux.Stringid(id,1),RESET_PHASE|PHASE_END|RESET_SELF_TURN,reset_count)
7477
--"Red Dragon Archfiend" in your Monster Zone is unaffected by your opponent's activated effects until the end of your next turn
75-
local e1=Effect.CreateEffect(e:GetHandler())
78+
local e1=Effect.CreateEffect(c)
7679
e1:SetType(EFFECT_TYPE_FIELD)
7780
e1:SetCode(EFFECT_IMMUNE_EFFECT)
7881
e1:SetTargetRange(LOCATION_MZONE,0)
7982
e1:SetTarget(aux.TargetBoolFunction(Card.IsCode,CARD_RED_DRAGON_ARCHFIEND))
8083
e1:SetValue(function(e,te) return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and te:IsActivated() end)
81-
e1:SetReset(RESET_PHASE|PHASE_END|RESET_SELF_TURN,Duel.IsTurnPlayer(tp) and 2 or 1)
84+
e1:SetReset(RESET_PHASE|PHASE_END|RESET_SELF_TURN,reset_count)
8285
Duel.RegisterEffect(e1,tp)
8386
breakeff=true
8487
end

0 commit comments

Comments
 (0)