Commit 160c9468 authored by mercury233's avatar mercury233 Committed by GitHub

fix Anubis the Last Judge (#3038)

parent 7607637b
......@@ -3,6 +3,13 @@ local s,id,o=GetID()
function s.initial_effect(c)
aux.AddCodeList(c,29762407,97522863)
c:EnableReviveLimit()
--special summon condition
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetCode(EFFECT_SPSUMMON_CONDITION)
e0:SetValue(0)
c:RegisterEffect(e0)
--spsummon rule
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -51,7 +58,7 @@ end
function s.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetMatchingGroup(s.sprfilter,tp,LOCATION_GRAVE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=g:CancelableSelect(tp,2,2,nil)
local sg=g:SelectSubGroup(tp,aux.dncheck,true,2,2)
if sg then
sg:KeepAlive()
e:SetLabelObject(sg)
......
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