Commit 869f9a85 authored by VanillaSalt's avatar VanillaSalt

fix

parent dca7df49
...@@ -73,6 +73,6 @@ function c10004783.tfop(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,6 +73,6 @@ function c10004783.tfop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
Duel.RaiseEvent(tc,47408488,e,0,tp,0,0) Duel.RaiseEvent(tc,EVENT_CARD+47408488,e,0,tp,0,0)
end end
end end
...@@ -39,7 +39,7 @@ function c11136371.plop(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c11136371.plop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
tc=g:GetNext() tc=g:GetNext()
end end
Duel.RaiseEvent(g,47408488,e,0,tp,0,0) Duel.RaiseEvent(g,EVENT_CARD+47408488,e,0,tp,0,0)
end end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......
...@@ -33,7 +33,7 @@ function c21698716.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c21698716.repop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fc0000) e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.RaiseEvent(c,47408488,e,0,tp,0,0) Duel.RaiseEvent(c,EVENT_CARD+47408488,e,0,tp,0,0)
end end
function c21698716.filter(c) function c21698716.filter(c)
return c:IsSetCard(0x1034) and c:IsAbleToDeck() and c:IsFaceup() return c:IsSetCard(0x1034) and c:IsAbleToDeck() and c:IsFaceup()
......
...@@ -35,7 +35,7 @@ function c24857466.initial_effect(c) ...@@ -35,7 +35,7 @@ function c24857466.initial_effect(c)
e5:SetCategory(CATEGORY_DESTROY) e5:SetCategory(CATEGORY_DESTROY)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e5:SetProperty(EFFECT_FLAG_CARD_TARGET) e5:SetProperty(EFFECT_FLAG_CARD_TARGET)
e5:SetCode(24857466) e5:SetCode(EVENT_CARD+24857466)
e5:SetCondition(c24857466.descon) e5:SetCondition(c24857466.descon)
e5:SetTarget(c24857466.destg) e5:SetTarget(c24857466.destg)
e5:SetOperation(c24857466.desop) e5:SetOperation(c24857466.desop)
...@@ -46,7 +46,7 @@ function c24857466.initial_effect(c) ...@@ -46,7 +46,7 @@ function c24857466.initial_effect(c)
e6:SetCategory(CATEGORY_SPECIAL_SUMMON) e6:SetCategory(CATEGORY_SPECIAL_SUMMON)
e6:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e6:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e6:SetProperty(EFFECT_FLAG_CARD_TARGET) e6:SetProperty(EFFECT_FLAG_CARD_TARGET)
e6:SetCode(24857466) e6:SetCode(EVENT_CARD+24857466)
e6:SetCondition(c24857466.spcon) e6:SetCondition(c24857466.spcon)
e6:SetTarget(c24857466.sptg) e6:SetTarget(c24857466.sptg)
e6:SetOperation(c24857466.spop) e6:SetOperation(c24857466.spop)
......
...@@ -32,7 +32,7 @@ function c32710364.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c32710364.repop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fc0000) e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.RaiseEvent(c,47408488,e,0,tp,0,0) Duel.RaiseEvent(c,EVENT_CARD+47408488,e,0,tp,0,0)
end end
function c32710364.filter(c,e,sp) function c32710364.filter(c,e,sp)
return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,sp,true,false) return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,sp,true,false)
......
...@@ -35,7 +35,7 @@ function c32933942.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function c32933942.repop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fc0000) e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.RaiseEvent(c,47408488,e,0,tp,0,0) Duel.RaiseEvent(c,EVENT_CARD+47408488,e,0,tp,0,0)
end end
function c32933942.rdcon(e,tp,eg,ep,ev,re,r,rp) function c32933942.rdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -44,4 +44,4 @@ function c32933942.rdcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,4 +44,4 @@ function c32933942.rdcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c32933942.rdop(e,tp,eg,ep,ev,re,r,rp) function c32933942.rdop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(ep,ev/2) Duel.ChangeBattleDamage(ep,ev/2)
end end
\ No newline at end of file
...@@ -11,7 +11,7 @@ function c35486099.initial_effect(c) ...@@ -11,7 +11,7 @@ function c35486099.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c35486099.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c35486099.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetControler()==tp and chkc:GetLocation()==LOCATION_GRAVE and chkc:IsSetCard(0x1034) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and chkc:IsSetCard(0x1034) end
if chk==0 then if chk==0 then
if not Duel.IsExistingTarget(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,0x1034) then return false end if not Duel.IsExistingTarget(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,0x1034) then return false end
if e:GetHandler():IsLocation(LOCATION_HAND) then if e:GetHandler():IsLocation(LOCATION_HAND) then
...@@ -31,6 +31,7 @@ function c35486099.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,6 +31,7 @@ function c35486099.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRelateToEffect,nil,e) local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if sg:GetCount()>0 then if sg:GetCount()>0 then
if sg:GetCount()>ft then if sg:GetCount()>ft then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local rg=sg:Select(tp,ft,ft,nil) local rg=sg:Select(tp,ft,ft,nil)
sg=rg sg=rg
end end
...@@ -46,6 +47,6 @@ function c35486099.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,6 +47,6 @@ function c35486099.activate(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
tc=sg:GetNext() tc=sg:GetNext()
end end
Duel.RaiseEvent(sg,47408488,e,0,tp,0,0) Duel.RaiseEvent(sg,EVENT_CARD+47408488,e,0,tp,0,0)
end end
end end
...@@ -25,7 +25,7 @@ function c36278828.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,7 +25,7 @@ function c36278828.operation(e,tp,eg,ep,ev,re,r,rp)
local atk=tc:GetAttack() local atk=tc:GetAttack()
tc:AddCounter(0x9,1) tc:AddCounter(0x9,1)
if atk>0 and tc:GetAttack()==0 then if atk>0 and tc:GetAttack()==0 then
Duel.RaiseEvent(tc,54306223,e,0,0,0,0) Duel.RaiseEvent(tc,EVENT_CARD+54306223,e,0,0,0,0)
end end
end end
end end
...@@ -33,7 +33,7 @@ function c47121070.tfop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c47121070.tfop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fc0000) e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
Duel.RaiseEvent(tc,47408488,e,0,tp,0,0) Duel.RaiseEvent(tc,EVENT_CARD+47408488,e,0,tp,0,0)
end end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -38,7 +38,7 @@ function c60728397.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c60728397.activate(e,tp,eg,ep,ev,re,r,rp)
local atk=tc:GetAttack() local atk=tc:GetAttack()
tc:AddCounter(0x9,2) tc:AddCounter(0x9,2)
if atk>0 and tc:GetAttack()==0 then if atk>0 and tc:GetAttack()==0 then
Duel.RaiseEvent(tc,54306223,e,0,0,0,0) Duel.RaiseEvent(tc,EVENT_CARD+54306223,e,0,0,0,0)
end end
end end
end end
......
...@@ -33,7 +33,7 @@ function c68215963.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c68215963.repop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fc0000) e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.RaiseEvent(c,47408488,e,0,tp,0,0) Duel.RaiseEvent(c,EVENT_CARD+47408488,e,0,tp,0,0)
end end
function c68215963.filter(c) function c68215963.filter(c)
return c:IsAttackPos() and c:GetAttackedCount()>0 return c:IsAttackPos() and c:GetAttackedCount()>0
......
...@@ -31,7 +31,7 @@ function c69937550.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function c69937550.repop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fc0000) e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.RaiseEvent(c,47408488,e,0,tp,0,0) Duel.RaiseEvent(c,EVENT_CARD+47408488,e,0,tp,0,0)
end end
function c69937550.cbcondition(e,tp,eg,ep,ev,re,r,rp) function c69937550.cbcondition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -37,7 +37,7 @@ function c7093411.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c7093411.repop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fc0000) e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.RaiseEvent(c,47408488,e,0,tp,0,0) Duel.RaiseEvent(c,EVENT_CARD+47408488,e,0,tp,0,0)
end end
function c7093411.target(e,tp,eg,ep,ev,re,r,rp,chk) function c7093411.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,1,nil,0x1034) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,1,nil,0x1034)
...@@ -57,6 +57,6 @@ function c7093411.operation(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -57,6 +57,6 @@ function c7093411.operation(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetReset(RESET_EVENT+0x1fc0000) e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
Duel.RaiseEvent(tc,47408488,e,0,tp,0,0) Duel.RaiseEvent(tc,EVENT_CARD+47408488,e,0,tp,0,0)
end end
end end
...@@ -35,7 +35,7 @@ function c73899015.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function c73899015.operation(e,tp,eg,ep,ev,re,r,rp)
local atk=tc:GetAttack() local atk=tc:GetAttack()
tc:AddCounter(0x9,1) tc:AddCounter(0x9,1)
if atk>0 and tc:GetAttack()==0 then if atk>0 and tc:GetAttack()==0 then
Duel.RaiseEvent(tc,54306223,e,0,0,0,0) Duel.RaiseEvent(tc,EVENT_CARD+54306223,e,0,0,0,0)
end end
end end
end end
...@@ -28,7 +28,7 @@ function c77972406.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c77972406.activate(e,tp,eg,ep,ev,re,r,rp)
local atk=tc:GetAttack() local atk=tc:GetAttack()
tc:AddCounter(0x9,1) tc:AddCounter(0x9,1)
if atk>0 and tc:GetAttack()==0 then if atk>0 and tc:GetAttack()==0 then
Duel.RaiseEvent(tc,54306223,e,0,0,0,0) Duel.RaiseEvent(tc,EVENT_CARD+54306223,e,0,0,0,0)
end end
end end
end end
...@@ -35,7 +35,7 @@ function c9284723.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function c9284723.operation(e,tp,eg,ep,ev,re,r,rp)
local atk=tc:GetAttack() local atk=tc:GetAttack()
tc:AddCounter(0x9,2) tc:AddCounter(0x9,2)
if atk>0 and tc:GetAttack()==0 then if atk>0 and tc:GetAttack()==0 then
Duel.RaiseEvent(tc,54306223,e,0,0,0,0) Duel.RaiseEvent(tc,EVENT_CARD+54306223,e,0,0,0,0)
end end
end end
end end
...@@ -31,13 +31,13 @@ function c94256039.initial_effect(c) ...@@ -31,13 +31,13 @@ function c94256039.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
-- --
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_DESTROY) e5:SetCategory(CATEGORY_DESTROY)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_ADD_COUNTER+0x3001) e5:SetCode(EVENT_ADD_COUNTER+0x3001)
e4:SetCondition(c94256039.descon) e5:SetCondition(c94256039.descon)
e4:SetTarget(c94256039.destg) e5:SetTarget(c94256039.destg)
e4:SetOperation(c94256039.desop) e5:SetOperation(c94256039.desop)
c:RegisterEffect(e4) c:RegisterEffect(e5)
end end
function c94256039.acop(e,tp,eg,ep,ev,re,r,rp) function c94256039.acop(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_PLAYER) local p=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_PLAYER)
......
...@@ -31,7 +31,7 @@ function c95600067.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function c95600067.repop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fc0000) e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.RaiseEvent(c,47408488,e,0,tp,0,0) Duel.RaiseEvent(c,EVENT_CARD+47408488,e,0,tp,0,0)
end end
function c95600067.condition(e) function c95600067.condition(e)
local phase=Duel.GetCurrentPhase() local phase=Duel.GetCurrentPhase()
......
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