Commit ef9676d8 authored by nekrozar's avatar nekrozar

fix

parent 68a5a293
...@@ -40,6 +40,7 @@ end ...@@ -40,6 +40,7 @@ end
function c84388461.filter(c,e,tp,m) function c84388461.filter(c,e,tp,m)
if not c:IsSetCard(0xb4) or bit.band(c:GetType(),0x81)~=0x81 if not c:IsSetCard(0xb4) or bit.band(c:GetType(),0x81)~=0x81
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,true,false) then return false end or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,true,false) then return false end
if c:IsCode(21105106) then return c:fuscon() end
local mg=nil local mg=nil
if c.mat_filter then if c.mat_filter then
mg=m:Filter(c.mat_filter,c) mg=m:Filter(c.mat_filter,c)
...@@ -67,6 +68,11 @@ function c84388461.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,6 +68,11 @@ function c84388461.operation(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.SelectMatchingCard(tp,c84388461.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp,mg) local tg=Duel.SelectMatchingCard(tp,c84388461.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp,mg)
if tg:GetCount()>0 then if tg:GetCount()>0 then
local tc=tg:GetFirst() local tc=tg:GetFirst()
if tc:IsCode(21105106) then
tc:fusop()
local mat=tc:GetMaterial()
Duel.ReleaseRitualMaterial(mat)
else
mg:RemoveCard(tc) mg:RemoveCard(tc)
if tc.mat_filter then if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,nil) mg=mg:Filter(tc.mat_filter,nil)
...@@ -75,6 +81,7 @@ function c84388461.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,6 +81,7 @@ function c84388461.operation(e,tp,eg,ep,ev,re,r,rp)
local mat=mg:SelectWithSumEqual(tp,Card.GetRitualLevel,tc:GetLevel(),1,99,tc) local mat=mg:SelectWithSumEqual(tp,Card.GetRitualLevel,tc:GetLevel(),1,99,tc)
tc:SetMaterial(mat) tc:SetMaterial(mat)
Duel.ReleaseRitualMaterial(mat) Duel.ReleaseRitualMaterial(mat)
end
Duel.BreakEffect() Duel.BreakEffect()
Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,true,false,POS_FACEUP)
tc:CompleteProcedure() tc:CompleteProcedure()
......
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