Commit a2076282 authored by VanillaSalt's avatar VanillaSalt

fix

parent ba264204
...@@ -42,7 +42,7 @@ function c16304628.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c16304628.atkop(e,tp,eg,ep,ev,re,r,rp)
local atk=tc:GetAttack() local atk=tc:GetAttack()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(atk/2) e1:SetValue(atk/2)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
......
...@@ -28,7 +28,6 @@ function c44887817.initial_effect(c) ...@@ -28,7 +28,6 @@ function c44887817.initial_effect(c)
end end
function c44887817.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c44887817.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.CheckNormalSummonActivity(tp) end if chk==0 then return not Duel.CheckNormalSummonActivity(tp) end
local c=e:GetHandler()
end end
function c44887817.filter(c,e,tp) function c44887817.filter(c,e,tp)
return c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -57,7 +56,7 @@ function c44887817.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +56,7 @@ function c44887817.operation(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone(e1) local e2=e1:Clone(e1)
e2:SetCode(EFFECT_CANNOT_MSET) e2:SetCode(EFFECT_CANNOT_MSET)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
end end
function c44887817.dfilter(c,sg) function c44887817.dfilter(c,sg)
return sg:IsContains(c) return sg:IsContains(c)
......
...@@ -19,7 +19,7 @@ function c49838105.initial_effect(c) ...@@ -19,7 +19,7 @@ function c49838105.initial_effect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(49838105,1)) e3:SetDescription(aux.Stringid(49838105,1))
e3:SetCategory(CATEGORY_TOHAND) e3:SetCategory(CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_PREDRAW) e3:SetCode(EVENT_PREDRAW)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCondition(c49838105.cfcon) e3:SetCondition(c49838105.cfcon)
...@@ -47,8 +47,7 @@ function c49838105.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,8 +47,7 @@ function c49838105.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c49838105.cfcon(e,tp,eg,ep,ev,re,r,rp) function c49838105.cfcon(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer() and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 return tp==Duel.GetTurnPlayer() and Duel.GetDrawCount(tp)>0
and Duel.GetDrawCount(tp)>0
end end
function c49838105.cftg(e,tp,eg,ep,ev,re,r,rp,chk) function c49838105.cftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -25,17 +25,17 @@ function c55599882.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,17 +25,17 @@ function c55599882.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetDescription(aux.Stringid(55599882,0)) e1:SetDescription(aux.Stringid(55599882,0))
e1:SetCategory(CATEGORY_REMOVE) e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLED) e1:SetCode(EVENT_BATTLE_DESTROYING)
e1:SetTarget(c55599882.rmtg) e1:SetTarget(c55599882.rmtg)
e1:SetOperation(c55599882.rmop) e1:SetOperation(c55599882.rmop)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END) e1:SetReset(RESET_EVENT+0x1620000+RESET_PHASE+RESET_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
function c55599882.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c55599882.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
if chk==0 then return bc and bc:IsRelateToBattle() and bc:IsStatus(STATUS_BATTLE_DESTROYED) if chk==0 then return bc and bc:IsLocation(LOCATION_GRAVE) and bc:IsReason(REASON_BATTLE) and bc:IsType(TYPE_MONSTER)
and c:GetBaseAttack()<=bc:GetAttack() and bc:IsAbleToRemove() end and c:GetBaseAttack()<=bc:GetAttack() and bc:IsAbleToRemove() end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,bc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,bc,1,0,0)
end end
......
...@@ -38,7 +38,6 @@ end ...@@ -38,7 +38,6 @@ end
function c95239444.stop(e,tp,eg,ep,ev,re,r,rp) function c95239444.stop(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetLabel() local ct=e:GetLabel()
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=ct then if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=ct then
Duel.ConfirmDecktop(tp,ct)
Duel.SortDecktop(tp,tp,ct) Duel.SortDecktop(tp,tp,ct)
end end
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