Commit 2422c427 authored by TanakaKotoha's avatar TanakaKotoha

cdb and lua fix

parent 98a7ba2d
No preview for this file type
...@@ -6,7 +6,6 @@ function c81041000.initial_effect(c) ...@@ -6,7 +6,6 @@ function c81041000.initial_effect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE) e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN) e0:SetCode(EVENT_FREE_CHAIN)
e0:SetCountLimit(1,81041000+EFFECT_COUNT_CODE_OATH) e0:SetCountLimit(1,81041000+EFFECT_COUNT_CODE_OATH)
e0:SetCost(c81041000.cost)
e0:SetTarget(c81041000.target) e0:SetTarget(c81041000.target)
e0:SetOperation(c81041000.activate) e0:SetOperation(c81041000.activate)
c:RegisterEffect(e0) c:RegisterEffect(e0)
...@@ -33,10 +32,6 @@ function c81041000.initial_effect(c) ...@@ -33,10 +32,6 @@ function c81041000.initial_effect(c)
e3:SetOperation(c81041000.drop) e3:SetOperation(c81041000.drop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c81041000.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_MUSIC,0,aux.Stringid(81041000,0))
end
function c81041000.filter(c) function c81041000.filter(c)
return c:IsCode(81041005) and c:IsAbleToHand() return c:IsCode(81041005) and c:IsAbleToHand()
end end
...@@ -46,6 +41,7 @@ function c81041000.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,6 +41,7 @@ function c81041000.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c81041000.activate(e,tp,eg,ep,ev,re,r,rp) function c81041000.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Hint(HINT_MUSIC,0,aux.Stringid(81041000,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c81041000.filter),tp,LOCATION_GRAVE+LOCATION_DECK+LOCATION_REMOVED,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c81041000.filter),tp,LOCATION_GRAVE+LOCATION_DECK+LOCATION_REMOVED,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
......
...@@ -22,12 +22,12 @@ end ...@@ -22,12 +22,12 @@ end
function c81041026.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c81041026.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
e:GetHandler():RegisterFlagEffect(81041026,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1) e:GetHandler():RegisterFlagEffect(81041026,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(81041026,0))
end end
function c81041026.filter(c,e,tp) function c81041026.filter(c,e,tp)
return c:IsAttack(1550) and c:IsDefense(1050) and c:IsType(TYPE_PENDULUM) return c:IsAttack(1550) and c:IsDefense(1050) and c:IsType(TYPE_PENDULUM)
end end
function c81041026.activate(e,tp,eg,ep,ev,re,r,rp) function c81041026.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(81041026,0))
local mg=Duel.GetRitualMaterial(tp) local mg=Duel.GetRitualMaterial(tp)
local g=Duel.GetMatchingGroup(aux.RitualUltimateFilter,tp,LOCATION_HAND,0,nil,c81041026.filter,e,tp,mg,nil,Card.GetLevel,"Greater") local g=Duel.GetMatchingGroup(aux.RitualUltimateFilter,tp,LOCATION_HAND,0,nil,c81041026.filter,e,tp,mg,nil,Card.GetLevel,"Greater")
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(81041026,1)) then if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(81041026,1)) then
......
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