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