Commit 0f029dcb authored by mercury233's avatar mercury233 Committed by GitHub

fix 古生代化石マシン スカルコンボイ

parent e232a4a6
......@@ -36,6 +36,7 @@ function c57157964.initial_effect(c)
e4:SetCode(EFFECT_UPDATE_ATTACK)
e4:SetRange(LOCATION_MZONE)
e4:SetTargetRange(0,LOCATION_MZONE)
e4:SetCondition(c57157964.atkcon)
e4:SetValue(c57157964.atkval)
c:RegisterEffect(e4)
end
......@@ -55,6 +56,9 @@ function c57157964.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
function c57157964.atkcon(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end
function c57157964.atkval(e,c)
local val=math.max(c:GetBaseDefense(),0)
return val*-1
......
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