Commit 10b741f8 authored by nanahira's avatar nanahira

fix

parent 10fcf8e4
...@@ -12,7 +12,7 @@ function cm.initial_effect(c) ...@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e1:SetCost(Senya.ForbiddenCost()) e1:SetCost(Senya.ForbiddenCost())
e1:SetTarget(cm.target) e1:SetTarget(cm.target)
e1:SetOperation(cm.operation) e1:SetOperation(cm.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local l=e:GetLabel() local l=e:GetLabel()
...@@ -37,7 +37,6 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,6 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
c:SetMaterial(mat) c:SetMaterial(mat)
Duel.ReleaseRitualMaterial(mat) Duel.ReleaseRitualMaterial(mat)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_MUSIC,0,m*16)
Senya.TransformDFCCard(c) Senya.TransformDFCCard(c)
Duel.SpecialSummon(c,SUMMON_TYPE_RITUAL,tp,tp,true,true,POS_FACEUP) Duel.SpecialSummon(c,SUMMON_TYPE_RITUAL,tp,tp,true,true,POS_FACEUP)
c:CompleteProcedure() c:CompleteProcedure()
......
...@@ -33,7 +33,7 @@ function cm.effect_operation_3L(c) ...@@ -33,7 +33,7 @@ function cm.effect_operation_3L(c)
ex2:SetTargetRange(0,LOCATION_DECK+LOCATION_EXTRA) ex2:SetTargetRange(0,LOCATION_DECK+LOCATION_EXTRA)
ex2:SetTarget(function(e,c) ex2:SetTarget(function(e,c)
return c:GetOwner()~=e:GetHandlerPlayer() and (c:IsLocation(LOCATION_DECK) return c:GetOwner()~=e:GetHandlerPlayer() and (c:IsLocation(LOCATION_DECK)
or (c:IsLocation(LOCATION_EXTRA) and (c:GetOriginalType() & TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ)~=0)) or (c:IsLocation(LOCATION_EXTRA) and (c:GetOriginalType() & TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK)~=0))
end) end)
ex2:SetReset(RESET_EVENT+0x1fe0000) ex2:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(ex2,true) c:RegisterEffect(ex2,true)
......
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