Skip to content

Commit 2760359

Browse files
authored
update "Megalith Phuloch"
- use unused function (s.ritop) - formatting
1 parent 3475313 commit 2760359

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

pre-release/c101302033.lua

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ function s.initial_effect(c)
1717
e1:SetOperation(s.thop)
1818
c:RegisterEffect(e1)
1919
local ritual_params={
20-
handler=c,
21-
filter=function(c) return c:IsSetCard(SET_MEGALITH) and not c:IsCode(id) end,
22-
lvtype=RITPROC_GREATER,
23-
location=LOCATION_GRAVE,
24-
forcedselection=function(e,tp,g,sc) return g:IsContains(e:GetHandler()) end
25-
}
20+
handler=c,
21+
filter=function(c) return c:IsSetCard(SET_MEGALITH) and not c:IsCode(id) end,
22+
lvtype=RITPROC_GREATER,
23+
location=LOCATION_GRAVE,
24+
forcedselection=function(e,tp,g,sc) return g:IsContains(e:GetHandler()) end
25+
}
2626
--Ritual Summon 1 "Megalith" Ritual Monster from your GY, by Tributing monsters from your hand or field, including this card on your field, whose total Levels equal or exceed the Level of the Ritual Monster
2727
local e2=Effect.CreateEffect(c)
2828
e2:SetDescription(aux.Stringid(id,1))
@@ -35,12 +35,7 @@ function s.initial_effect(c)
3535
e2:SetCondition(function() return Duel.IsMainPhase() end)
3636
e2:SetCost(Cost.HardOncePerChain(id))
3737
e2:SetTarget(Ritual.Target(ritual_params))
38-
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
39-
local c=e:GetHandler()
40-
if c:IsRelateToEffect(e) and c:IsControler(tp) then
41-
Ritual.Operation(ritual_params)(e,tp,eg,ep,ev,re,r,rp)
42-
end
43-
end)
38+
e2:SetOperation(s.ritop(Ritual.Operation(ritual_params)))
4439
c:RegisterEffect(e2)
4540
end
4641
s.listed_series={SET_MEGALITH}
@@ -67,4 +62,4 @@ function s.ritop(default_operation)
6762
default_operation(e,tp,eg,ep,ev,re,r,rp)
6863
end
6964
end
70-
end
65+
end

0 commit comments

Comments
 (0)