Skip to content

Commit d3922a6

Browse files
committed
fixed Star Salvation Shield
1 parent db9e483 commit d3922a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rush/c160015065.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ function s.filter1(c,tp)
2424
return c:IsSummonPlayer(1-tp) and c:IsLocation(LOCATION_MZONE)
2525
end
2626
function s.condition(e,tp,eg,ep,ev,re,r,rp)
27-
return eg:IsExists(s.filter1,1,nil,tp) and Duel.IsTurnPlayer(1-tp)
27+
return eg:IsExists(s.filter1,1,nil,tp) and Duel.IsTurnPlayer(1-tp) and Duel.GetFlagEffect(ep,id)==0
2828
end
2929
function s.condition2(e,tp,eg,ep,ev,re,r,rp)
30-
return ep==1-tp and Duel.IsTurnPlayer(1-tp)
30+
return ep==1-tp and Duel.IsTurnPlayer(1-tp) and Duel.GetFlagEffect(ep,id)==0
3131
end
3232
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
3333
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_MZONE,0,1,nil) end
@@ -41,6 +41,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
4141
g=g:AddMaximumCheck()
4242
local ct=Duel.SendtoGrave(g,REASON_COST)
4343
if ct>0 then
44+
Duel.RegisterFlagEffect(ep,id,RESET_PHASE|PHASE_END,0,1)
4445
--can attack once
4546
local e1=Effect.CreateEffect(e:GetHandler())
4647
e1:SetDescription(aux.Stringid(id,2))

0 commit comments

Comments
 (0)