Commit e6d310c7 authored by mercury233's avatar mercury233 Committed by GitHub

update 召喚制限-猛突するモンスター (#1657)

parent 02732e41
...@@ -35,14 +35,21 @@ function c30834988.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,14 +35,21 @@ function c30834988.operation(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
tc=g:GetNext() tc=g:GetNext()
end end
if Duel.GetFlagEffect(tp,30834988)==0 then local ct,last_turn,last_lp_0,last_lp_1,last_deck_0,last_deck_1=e:GetLabel()
Duel.RegisterFlagEffect(tp,30834988,RESET_PHASE+PHASE_END,0,1) local turn=Duel.GetTurnCount()
e:SetLabel(0) local lp_0=Duel.GetLP(0)
local lp_1=Duel.GetLP(1)
local deck_0=Duel.GetFieldGroupCount(0,LOCATION_DECK,0)
local deck_1=Duel.GetFieldGroupCount(1,LOCATION_DECK,0)
if ct==nil
or last_turn~=turn or last_lp_0~=lp_0 or last_lp_1~=lp_1 or last_deck_0-deck_0>5 or last_deck_1-deck_1>5 then
e:SetLabel(0,turn,lp_0,lp_1,deck_0,deck_1)
else else
local count=e:GetLabel() ct=ct+1
e:SetLabel(count+1) if ct>10 then
if count>49 then
Duel.SendtoGrave(c,REASON_RULE) Duel.SendtoGrave(c,REASON_RULE)
return
end end
e:SetLabel(ct,turn,lp_0,lp_1,last_deck_0,last_deck_1)
end end
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