Commit 1a1904db authored by mercury233's avatar mercury233

fix

parent 28102c4d
...@@ -53,7 +53,7 @@ function c100236103.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c100236103.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
function c100236103.indtg(c) function c100236103.indtg(e,c)
return c:IsRace(RACE_SPELLCASTER) and c:IsLevelAbove(7) return c:IsRace(RACE_SPELLCASTER) and c:IsLevelAbove(7)
end end
function c100236103.spcon2(e,tp,eg,ep,ev,re,r,rp) function c100236103.spcon2(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -85,7 +85,8 @@ function c100412032.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +85,8 @@ function c100412032.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local rc=re:GetHandler() local rc=re:GetHandler()
return rp==tp and c:GetFlagEffect(1)>0 return rp==tp and c:GetFlagEffect(1)>0
and (re:IsActiveType(TYPE_MONSTER) and c:GetEquipTarget()==rc) or (re:IsHasType(EFFECT_TYPE_ACTIVATE) and rc:IsSetCard(0x226) and rc~=c) and ((re:IsActiveType(TYPE_MONSTER) and c:GetEquipTarget()==rc)
or (re:IsHasType(EFFECT_TYPE_ACTIVATE) and rc:IsSetCard(0x226) and rc~=c))
end end
function c100412032.atkop(e,tp,eg,ep,ev,re,r,rp) function c100412032.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -65,7 +65,9 @@ function c100412033.rfop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,7 +65,9 @@ function c100412033.rfop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c100412033.damop(e,tp,eg,ep,ev,re,r,rp) function c100412033.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(1-ep,ev,false) if ep==tp then
Duel.ChangeBattleDamage(1-ep,ev,false)
end
end end
function c100412033.thcon(e,tp,eg,ep,ev,re,r,rp) function c100412033.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -23,7 +23,7 @@ function c100412036.initial_effect(c) ...@@ -23,7 +23,7 @@ function c100412036.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--recycle --recycle
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e3:SetCategory(CATEGORY_TOGRAVE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_DESTROYED) e3:SetCode(EVENT_DESTROYED)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
......
...@@ -37,6 +37,7 @@ function c101008008.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,6 +37,7 @@ function c101008008.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToGraveAsCost() end if chk==0 then return c:IsAbleToGraveAsCost() end
Duel.SendtoGrave(c,REASON_COST) Duel.SendtoGrave(c,REASON_COST)
c:RegisterFlagEffect(101008008,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end end
function c101008008.atkop(e,tp,eg,ep,ev,re,r,rp) function c101008008.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -56,7 +57,6 @@ function c101008008.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +57,6 @@ function c101008008.atkop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
c:RegisterFlagEffect(101008008,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end end
function c101008008.skipop(e,tp,eg,ep,ev,re,r,rp) function c101008008.skipop(e,tp,eg,ep,ev,re,r,rp)
Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1)
......
...@@ -81,8 +81,13 @@ function c101008025.regcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,8 +81,13 @@ function c101008025.regcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c101008025.regop(e,tp,eg,ep,ev,re,r,rp) function c101008025.regop(e,tp,eg,ep,ev,re,r,rp)
local lg=eg:Filter(c101008025.cfilter,nil,1-tp) local lg=eg:Filter(c101008025.cfilter,nil,1-tp)
lg:KeepAlive() local g=e:GetLabelObject()
e:SetLabelObject(lg) if g==nil or #g==0 then
lg:KeepAlive()
e:SetLabelObject(lg)
else
g:Merge(lg)
end
Duel.RegisterFlagEffect(tp,101008125,RESET_CHAIN,0,1) Duel.RegisterFlagEffect(tp,101008125,RESET_CHAIN,0,1)
end end
function c101008025.lpcon2(e,tp,eg,ep,ev,re,r,rp) function c101008025.lpcon2(e,tp,eg,ep,ev,re,r,rp)
...@@ -92,6 +97,10 @@ function c101008025.lpop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,6 +97,10 @@ function c101008025.lpop2(e,tp,eg,ep,ev,re,r,rp)
Duel.ResetFlagEffect(tp,101008125) Duel.ResetFlagEffect(tp,101008125)
local lg=e:GetLabelObject():GetLabelObject() local lg=e:GetLabelObject():GetLabelObject()
local rnum=lg:GetSum(Card.GetAttack) local rnum=lg:GetSum(Card.GetAttack)
local g=Group.CreateGroup()
g:KeepAlive()
e:GetLabelObject():SetLabelObject(g)
lg:DeleteGroup()
if Duel.Recover(tp,rnum,REASON_EFFECT)<1 then return end if Duel.Recover(tp,rnum,REASON_EFFECT)<1 then return end
Duel.RegisterFlagEffect(tp,101008025,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,101008025,RESET_PHASE+PHASE_END,0,1)
end end
......
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