Commit 72ef2c41 authored by Ma's avatar Ma

Update c3428069.lua

修复bug
Fluorohydride/ygopro#1596
parent 3b78becd
...@@ -33,8 +33,8 @@ function c3428069.initial_effect(c) ...@@ -33,8 +33,8 @@ function c3428069.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c3428069.cfilter(c,e,tp) function c3428069.cfilter(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsControler(1-tp) and c:IsLocation(LOCATION_GRAVE) return c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==1-tp
and c:IsReason(REASON_EFFECT+REASON_BATTLE) and c:IsCanBeEffectTarget(e) and c:IsLocation(LOCATION_GRAVE) and c:IsReason(REASON_EFFECT+REASON_BATTLE)
end end
function c3428069.eqcon(e,tp,eg,ep,ev,re,r,rp) function c3428069.eqcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c3428069.cfilter,1,nil,e,tp) return eg:IsExists(c3428069.cfilter,1,nil,e,tp)
...@@ -79,7 +79,7 @@ end ...@@ -79,7 +79,7 @@ end
function c3428069.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c3428069.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEquipGroup():IsExists(c3428069.tgfilter,1,nil,tp) end if chk==0 then return e:GetHandler():GetEquipGroup():IsExists(c3428069.tgfilter,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=e:GetHandler():GetEquipGroup():FilterSelect(tp,1,1,nil,tp) local g=e:GetHandler():GetEquipGroup():FilterSelect(tp,c3428069.tgfilter,1,1,nil,tp)
e:SetLabel(g:GetFirst():GetRace()) e:SetLabel(g:GetFirst():GetRace())
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
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