Skip to content

Commit 42689f2

Browse files
authored
Update c511002090.lua
1 parent 90b8609 commit 42689f2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

unofficial/c511002090.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function s.initial_effect(c)
3131
e3:SetCountLimit(1)
3232
e3:SetRange(LOCATION_MZONE)
3333
e3:SetCost(Cost.DetachFromSelf(1))
34-
e3:SetOperation(function(e) local tp=e:GetHandlerPlayer() Duel.SetLP(1-tp,Duel.GetLP(1-tp)/2))
34+
e3:SetOperation(s.halveopplpop)
3535
c:RegisterEffect(e3)
3636
--If this card has no materials: Halve both players' LP during your Standby Phase
3737
local e4=Effect.CreateEffect(c)
@@ -41,7 +41,7 @@ function s.initial_effect(c)
4141
e4:SetRange(LOCATION_MZONE)
4242
e4:SetCountLimit(1)
4343
e4:SetCondition(function(e,tp) return Duel.IsTurnPlayer(tp) and e:GetHandler():GetOverlayCount()==0 end)
44-
e4:SetOperation(s.hlpop)
44+
e4:SetOperation(s.halvebothlpop)
4545
c:RegisterEffect(e4)
4646
--This card cannot be destroyed by battle while your LP are 1000 or less by the above effect, also you take no battle damage
4747
local e5a=Effect.CreateEffect(c)
@@ -122,7 +122,10 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
122122
s.equipop(c,e,tp,tc)
123123
end
124124
end
125-
function s.halvelpop(e,tp,eg,ep,ev,re,r,rp)
125+
function s.halveopplpop(e,tp,eg,ep,ev,re,r,rp)
126+
Duel.SetLP(1-tp,Duel.GetLP(1-tp)/2)
127+
end
128+
function s.halvebothlpop(e,tp,eg,ep,ev,re,r,rp)
126129
local lp=Duel.GetLP(tp)
127130
Duel.SetLP(tp,lp/2)
128131
Duel.SetLP(1-tp,Duel.GetLP(1-tp)/2)

0 commit comments

Comments
 (0)