Commit dda20219 authored by wind2009's avatar wind2009

Fix Vingolf's Blessing

parent 8a8df8d8
Pipeline #35263 passed with stages
in 1 minute and 18 seconds
No preview for this file type
pics/101208083.jpg

101 KB | W: | H:

pics/101208083.jpg

101 KB | W: | H:

pics/101208083.jpg
pics/101208083.jpg
pics/101208083.jpg
pics/101208083.jpg
  • 2-up
  • Swipe
  • Onion skin
pics/101208084.jpg

95.1 KB | W: | H:

pics/101208084.jpg

95.1 KB | W: | H:

pics/101208084.jpg
pics/101208084.jpg
pics/101208084.jpg
pics/101208084.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -7,7 +7,6 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(s.tgtg)
e1:SetOperation(s.activate)
c:RegisterEffect(e1)
--attack up
......@@ -34,14 +33,12 @@ end
function s.filter(c)
return c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsAbleToGrave()
end
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:Select(tp,1,1,nil)
Duel.SendtoGrave(sg,REASON_EFFECT)
end
end
function s.atkval(e,c)
......
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