Commit 2e258d00 authored by salix5's avatar salix5

fix: add hint to cards in public

parent c6b4c50d
...@@ -55,16 +55,19 @@ function c56673480.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,16 +55,19 @@ function c56673480.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,PLAYER_ALL,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,PLAYER_ALL,1)
end end
function c56673480.activate(e,tp,eg,ep,ev,re,r,rp) function c56673480.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local lp0=Duel.GetLP(tp) local lp0=Duel.GetLP(tp)
if lp0>=1000 then if lp0>=1000 then
Duel.SetLP(tp,lp0-1000) Duel.SetLP(tp,lp0-1000)
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
else
Duel.SetLP(tp,0)
end end
local lp1=Duel.GetLP(1-tp) local lp1=Duel.GetLP(1-tp)
if lp1>=1000 then if lp1>=1000 then
Duel.SetLP(1-tp,lp1-1000) Duel.SetLP(1-tp,lp1-1000)
Duel.Draw(1-tp,1,REASON_EFFECT) Duel.Draw(1-tp,1,REASON_EFFECT)
else
Duel.SetLP(1-tp,0)
end end
end end
function c56673480.drop(e,tp,eg,ep,ev,re,r,rp) function c56673480.drop(e,tp,eg,ep,ev,re,r,rp)
...@@ -77,7 +80,7 @@ function c56673480.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +80,7 @@ function c56673480.drop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
while tc do while tc do
pg:AddCard(tc) pg:AddCard(tc)
tc:RegisterFlagEffect(56673481,RESET_EVENT+RESETS_STANDARD,0,1) tc:RegisterFlagEffect(56673481,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,66)
tc=eg:GetNext() tc=eg:GetNext()
end end
end end
......
...@@ -52,8 +52,10 @@ function c69217334.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,8 +52,10 @@ function c69217334.lvop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,cg) Duel.ConfirmCards(1-tp,cg)
local pc=cg:GetFirst() local pc=cg:GetFirst()
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(66)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_PUBLIC) e2:SetCode(EFFECT_PUBLIC)
e2:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
pc:RegisterEffect(e2) pc:RegisterEffect(e2)
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
......
...@@ -22,7 +22,9 @@ function c87102774.reccost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -22,7 +22,9 @@ function c87102774.reccost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end if chk==0 then return not e:GetHandler():IsPublic() end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetDescription(66)
e1:SetCode(EFFECT_PUBLIC) e1:SetCode(EFFECT_PUBLIC)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e1) e:GetHandler():RegisterEffect(e1)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment