Commit 80b6b075 authored by wind2009's avatar wind2009

Merge branch 'patch-2' into 'master'

Fix Sakra Vendirage

See merge request mycard/pre-release-database-cdb!181
parents dda20219 386a32bf
Pipeline #35266 passed with stages
in 1 minute and 27 seconds
...@@ -25,6 +25,7 @@ function s.initial_effect(c) ...@@ -25,6 +25,7 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,id+o) e2:SetCountLimit(1,id+o)
e2:SetCondition(s.codecon)
e2:SetTarget(s.codetg) e2:SetTarget(s.codetg)
e2:SetOperation(s.codeop) e2:SetOperation(s.codeop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -51,6 +52,9 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,6 +52,9 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function s.codecon(e,tp,eg,ep,ev,re,r,rp)
return not eg:IsContains(e:GetHandler())
end
function s.codefilter(c) function s.codefilter(c)
return c:IsFaceup() and not c:IsCode(id) return c:IsFaceup() and not c:IsCode(id)
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