Commit 2c0e55ce authored by VanillaSalt's avatar VanillaSalt

fix

parent 75d0c674
...@@ -65,13 +65,15 @@ function c8763963.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,13 +65,15 @@ function c8763963.operation(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
Duel.Recover(tp,tc:GetBaseAttack(),REASON_EFFECT) Duel.Recover(tp,tc:GetBaseAttack(),REASON_EFFECT)
end end
local e2=Effect.CreateEffect(c) if c:IsRelateToEffect(e) then
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) local e2=Effect.CreateEffect(c)
e2:SetRange(LOCATION_MZONE) e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetRange(LOCATION_MZONE)
e2:SetCode(EVENT_PRE_BATTLE_DAMAGE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e2:SetCode(EVENT_PRE_BATTLE_DAMAGE)
e2:SetCondition(c8763963.dcon) e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e2:SetOperation(c8763963.dop) e2:SetCondition(c8763963.dcon)
c:RegisterEffect(e2) e2:SetOperation(c8763963.dop)
c:RegisterEffect(e2)
end
end end
...@@ -34,7 +34,7 @@ function c89181369.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -34,7 +34,7 @@ function c89181369.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local rg=Duel.GetMatchingGroup(c89181369.rmfilter,tp,LOCATION_GRAVE,0,nil) local rg=Duel.GetMatchingGroup(c89181369.rmfilter,tp,LOCATION_GRAVE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c89181369.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,rg) local g=Duel.SelectTarget(tp,c89181369.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,rg)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c89181369.activate(e,tp,eg,ep,ev,re,r,rp) function c89181369.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
...@@ -18,7 +18,8 @@ function c90887783.filter2(c,lv) ...@@ -18,7 +18,8 @@ function c90887783.filter2(c,lv)
end end
function c90887783.target(e,tp,eg,ep,ev,re,r,rp,chk) function c90887783.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c90887783.filter1,tp,LOCATION_HAND,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c90887783.filter1,tp,LOCATION_HAND,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c90887783.operation(e,tp,eg,ep,ev,re,r,rp) function c90887783.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
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