Commit dde3b30b authored by mercury233's avatar mercury233

fix

parent d938fc83
......@@ -28,6 +28,7 @@ end
function c101008008.atkcon(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker()
if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end
if not tc then return false end
e:SetLabelObject(tc)
local bc=tc:GetBattleTarget()
return bc and tc:IsSetCard(0x11a) and bc:IsAttackAbove(tc:GetAttack())
......
......@@ -10,10 +10,14 @@ function c101008025.initial_effect(c)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,101008025)
e1:SetCondition(c101008025.condition)
e1:SetCost(c101008025.cost)
e1:SetOperation(c101008025.operation)
c:RegisterEffect(e1)
end
function c101008025.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_END
end
function c101008025.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
......
......@@ -42,7 +42,7 @@ end
function c101008075.cfilter(c,e)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xfe) and c:GetBaseAttack()>0
and c:IsAbleToRemoveAsCost() and (c:IsFaceup() or not c:IsLocation(LOCATION_MZONE))
and Duel.IsExistingTarget(c101008075.filter,0,LOCATION_MZONE,LOCATION_MZONE,1,c,e)
and Duel.IsExistingMatchingCard(c101008075.filter,0,LOCATION_MZONE,LOCATION_MZONE,1,c,e)
end
function c101008075.filter(c,e)
return c:IsFaceup() and c:IsType(TYPE_LINK) and c:IsCanBeEffectTarget(e)
......
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