Commit bb062b7e authored by DailyShana's avatar DailyShana

fix

parent d3896ad3
...@@ -32,12 +32,12 @@ function c20513882.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,12 +32,12 @@ function c20513882.target(e,tp,eg,ep,ev,re,r,rp,chk)
return Duel.CheckReleaseGroup(tp,c20513882.cfilter,1,nil,tp) return Duel.CheckReleaseGroup(tp,c20513882.cfilter,1,nil,tp)
end end
local g=Duel.SelectReleaseGroup(tp,c20513882.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(tp,c20513882.cfilter,1,1,nil,tp)
Duel.SetTargetCard(g) e:SetLabelObject(g:GetFirst())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
end end
function c20513882.activate(e,tp,eg,ep,ev,re,r,rp) function c20513882.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=e:GetLabelObject()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c20513882.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,tc) local g=Duel.SelectMatchingCard(tp,c20513882.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,tc)
if g:GetCount()>0 and not g:GetFirst():IsHasEffect(EFFECT_NECRO_VALLEY) then if g:GetCount()>0 and not g:GetFirst():IsHasEffect(EFFECT_NECRO_VALLEY) then
......
...@@ -21,7 +21,7 @@ function c60080151.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,7 +21,7 @@ function c60080151.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c60080151.activate(e,tp,eg,ep,ev,re,r,rp) function c60080151.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
if tc and tc:IsAttackable() and tc:IsOnField() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then if tc and tc:IsAttackable() and tc:IsRelateToBattle() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then
local dam=tc:GetAttack() local dam=tc:GetAttack()
if Duel.Damage(tp,dam,REASON_EFFECT)>0 and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)>0 then if Duel.Damage(tp,dam,REASON_EFFECT)>0 and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)>0 then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -37,8 +37,9 @@ function c99357565.scop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,8 +37,9 @@ function c99357565.scop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_ADD_SETCODE) e1:SetCode(EFFECT_ADD_SETCODE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(0xc008) e1:SetValue(0xc008)
e1:SetReset(RESET_EVENT+0x1ff0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
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