You need to sign in or sign up before continuing.
Commit d44ed2e5 authored by 八宫一月's avatar 八宫一月 Committed by GitHub

fix--ユベル-Das Ewig Liebe Wächter (#2471)

parent fff10a08
...@@ -65,15 +65,18 @@ function s.damrtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,15 +65,18 @@ function s.damrtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
if chk==0 then return c:IsStatus(STATUS_OPPO_BATTLE) and bc~=nil end if chk==0 then return c:IsStatus(STATUS_OPPO_BATTLE) and bc~=nil end
if bc:GetAttack()>0 then
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,bc:GetAttack()) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,bc:GetAttack())
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,bc:GetDefense()) end
end end
function s.damrop(e,tp,eg,ep,ev,re,r,rp) function s.damrop(e,tp,eg,ep,ev,re,r,rp)
local bc=e:GetHandler():GetBattleTarget() local bc=e:GetHandler():GetBattleTarget()
local atk=bc:GetAttack() local atk=bc:GetAttack()
local def=bc:GetDefense() local def=bc:GetDefense()
if atk<0 then atk=0 end if atk<0 then atk=0 end
Duel.Damage(1-tp,atk,REASON_EFFECT,true) if bc:IsControler(tp) or bc:IsFacedown() then return end
Duel.Remove(bc,0,REASON_EFFECT) if Duel.Damage(1-tp,atk,REASON_EFFECT,true)~=0 then
Duel.Remove(bc,POS_FACEUP,REASON_EFFECT)
end
Duel.RDComplete() Duel.RDComplete()
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