Commit b8502154 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix 機怪獣ダレトン (#1793)

parent c9541575
......@@ -6,9 +6,16 @@ function c86271510.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c86271510.target)
e1:SetOperation(c86271510.operation)
c:RegisterEffect(e1)
end
function c86271510.filter(c)
return c:IsFaceup() and not c:IsAttack(c:GetBaseAttack())
end
function c86271510.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c86271510.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
end
function c86271510.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() then return 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