name: Blood
card_text: If this card inflicts battle damage to your opponent: Send the top card of their Deck to the GY.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--handes
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_DECKDES)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e1:SetCode(EVENT_BATTLE_DAMAGE)
  	e1:SetCondition(s.ddcon)
  	e1:SetTarget(s.ddtg)
  	e1:SetOperation(s.ddop)
  	c:RegisterEffect(e1)
  end
  function s.ddcon(e, tp, eg, ep, ev, re, r, rp)
  	return ep ~= tp
  end
  function s.ddtg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetOperationInfo(0, CATEGORY_DECKDES, 0, 0, 1 - tp, 1)
  end
  function s.ddop(e, tp, eg, ep, ev, re, r, rp)
  	Duel.DiscardDeck(1 - tp, 1, REASON_EFFECT)
  end
  
  
source_text: Blood
  If this card inflicts battle damage to your opponent: Send the top card of their Deck to the GY.
target_text: -- Blood
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--handes
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_DECKDES)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e1:SetCode(EVENT_BATTLE_DAMAGE)
  	e1:SetCondition(s.ddcon)
  	e1:SetTarget(s.ddtg)
  	e1:SetOperation(s.ddop)
  	c:RegisterEffect(e1)
  end
  function s.ddcon(e, tp, eg, ep, ev, re, r, rp)
  	return ep ~= tp
  end
  function s.ddtg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetOperationInfo(0, CATEGORY_DECKDES, 0, 0, 1 - tp, 1)
  end
  function s.ddop(e, tp, eg, ep, ev, re, r, rp)
  	Duel.DiscardDeck(1 - tp, 1, REASON_EFFECT)
  end
  
  