Skip to content

Commit 5142c5f

Browse files
authored
Update "Rainbow Blessing (DM)"
-Should only allow 1 monster to attack directly
1 parent 9deb78a commit 5142c5f

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

‎unofficial/c511000690.lua‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
--虹色の祝福
1+
--虹色の祝福 (DM)
22
--Rainbow Blessing (DM)
33
local s,id=GetID()
44
function s.initial_effect(c)
55
aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsCode,CARD_KURIBOH))
6-
--Direct
6+
--You can Tribute the equipped monster; 1 monster you control can attack your opponent directly this turn.
77
local e2=Effect.CreateEffect(c)
88
e2:SetType(EFFECT_TYPE_IGNITION)
99
e2:SetRange(LOCATION_SZONE)
1010
e2:SetCountLimit(1)
1111
e2:SetCost(s.cost)
12-
e2:SetTarget(s.dirtar)
13-
e2:SetOperation(s.diract)
12+
e2:SetTarget(s.diratktg)
13+
e2:SetOperation(s.diratkop)
1414
c:RegisterEffect(e2)
1515
end
1616
s.listed_names={CARD_KURIBOH}
@@ -19,18 +19,18 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
1919
if chk==0 then return eq:IsReleasable() end
2020
Duel.Release(eq,REASON_COST)
2121
end
22-
function s.dirtar(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
22+
function s.diratktg(e,tp,eg,ep,ev,re,r,rp,chk)
2323
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,LOCATION_MZONE,0,1,nil) end
2424
end
25-
function s.diract(e,tp,eg,ep,ev,re,r,rp)
26-
local g=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,0,nil)
27-
local tc=g:GetFirst()
28-
while tc do
29-
local e1=Effect.CreateEffect(e:GetHandler())
25+
function s.diratkop(e,tp,eg,ep,ev,re,r,rp)
26+
local c=e:GetHandler()
27+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_APPLYTO)
28+
local tc=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_MZONE,0,1,1,nil):GetFirst()
29+
if tc then
30+
local e1=Effect.CreateEffect(c)
3031
e1:SetType(EFFECT_TYPE_SINGLE)
3132
e1:SetCode(EFFECT_DIRECT_ATTACK)
32-
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
33+
e1:SetReset(RESETS_STANDARD_PHASE_END)
3334
tc:RegisterEffect(e1)
34-
tc=g:GetNext()
3535
end
36-
end
36+
end

0 commit comments

Comments
 (0)