Commit 7018cd72 authored by salix5's avatar salix5

Merge branch 'master' into patch

parents 06a86980 1d473281
...@@ -61,10 +61,11 @@ function c31181711.btcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,10 +61,11 @@ function c31181711.btcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c31181711.btcost(e,tp,eg,ep,ev,re,r,rp,chk) function c31181711.btcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
e:SetLabelObject(e:GetHandler():GetEquipTarget())
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c31181711.btop(e,tp,eg,ep,ev,re,r,rp) function c31181711.btop(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetHandler():GetEquipTarget() local ec=e:GetLabelObject()
if Duel.NegateAttack() and ec:IsFaceup() then if Duel.NegateAttack() and ec:IsFaceup() then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -92,7 +92,7 @@ function c47198668.atkop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,7 +92,7 @@ function c47198668.atkop2(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c47198668.efilter(e,re,rp) function c47198668.efilter(e,re,rp)
if not re:IsActiveType(TYPE_SPELL+TYPE_TRAP) or not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end if not re:IsActiveType(TYPE_SPELL+TYPE_TRAP) then return false end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
return not g:IsContains(e:GetHandler()) return g and not g:IsContains(e:GetHandler())
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