name: Loss
card_text: If your opponent's LP is 4000 or higher, your LP become 1000 less than theirs. You can only activate 1 "Loss Time" per turn.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetCountLimit(1, id + EFFECT_COUNT_CODE_OATH)
  	e1:SetCondition(s.condition)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	return Duel.GetLP(1 - tp) >= 4000 and Duel.GetLP(tp) ~= Duel.GetLP(1 - tp) - 1000
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	if Duel.GetLP(1 - tp) >= 4000 and Duel.GetLP(tp) ~= Duel.GetLP(1 - tp) - 1000 then
  		Duel.SetLP(tp, Duel.GetLP(1 - tp) - 1000)
  	end
  end
  
  
source_text: Loss
  If your opponent's LP is 4000 or higher, your LP become 1000 less than theirs. You can only activate 1 "Loss Time" per turn.
target_text: -- Loss
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetCountLimit(1, id + EFFECT_COUNT_CODE_OATH)
  	e1:SetCondition(s.condition)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	return Duel.GetLP(1 - tp) >= 4000 and Duel.GetLP(tp) ~= Duel.GetLP(1 - tp) - 1000
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	if Duel.GetLP(1 - tp) >= 4000 and Duel.GetLP(tp) ~= Duel.GetLP(1 - tp) - 1000 then
  		Duel.SetLP(tp, Duel.GetLP(1 - tp) - 1000)
  	end
  end
  
  