Commit 6ba46dc5 authored by mercury233's avatar mercury233 Committed by GitHub

fix オッドアイズ・ドラゴン

parent af13ef24
......@@ -19,13 +19,18 @@ function c53025096.damcon(e,tp,eg,ep,ev,re,r,rp)
end
function c53025096.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local dam=math.floor(e:GetHandler():GetBattleTarget():GetAttack()/2)
if dam<0 then dam=0 end
local bc=e:GetHandler():GetBattleTarget()
local dam=math.floor(bc:GetBaseAttack()/2)
Duel.SetTargetCard(bc)
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam)
end
function c53025096.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)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local dam=math.floor(tc:GetBaseAttack()/2)
Duel.Damage(p,dam,REASON_EFFECT)
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