name: Destructive
card_text: If either player has no cards in their hand at the start of their Draw Phase, they can draw 1 more card in addition to their normal draw. This card's controller loses 700 Life Points during their End Phase. (If less than 700, they become 0 instead.) When this face-up card is removed from the field, inflict 3000 damage to the player who controlled it.
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)
  	c:RegisterEffect(e1)
  	--leave
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
  	e2:SetCode(EVENT_LEAVE_FIELD_P)
  	e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
  	e2:SetOperation(s.checkop)
  	c:RegisterEffect(e2)
  	local e3 = Effect.CreateEffect(c)
  	e3:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
  	e3:SetCode(EVENT_LEAVE_FIELD)
  	e3:SetOperation(s.leave)
  	e3:SetLabelObject(e2)
  	c:RegisterEffect(e3)
  	--Draw
  	local e4 = Effect.CreateEffect(c)
  	e4:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e4:SetCode(EVENT_PREDRAW)
  	e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
  	e4:SetRange(LOCATION_SZONE)
  	e4:SetOperation(s.pdraw)
  	c:RegisterEffect(e4)
  	local e5 = Effect.CreateEffect(c)
  	e5:SetDescription(aux.Stringid(id, 0))
  	e5:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_F)
  	e5:SetCategory(CATEGORY_DRAW)
  	e5:SetRange(LOCATION_SZONE)
  	e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e5:SetCode(EVENT_DRAW)
  	e5:SetCondition(s.drcon)
  	e5:SetTarget(s.drtg)
  	e5:SetOperation(s.drop)
  	e5:SetLabelObject(e4)
  	c:RegisterEffect(e5)
  	--cost
  	local e6 = Effect.CreateEffect(c)
  	e6:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e6:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
  	e6:SetRange(LOCATION_SZONE)
  	e6:SetCode(EVENT_PHASE + PHASE_END)
  	e6:SetCountLimit(1)
  	e6:SetCondition(s.costcon)
  	e6:SetOperation(s.costop)
  	c:RegisterEffect(e6)
  end
  function s.checkop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	if c:IsDisabled() or not c:IsStatus(STATUS_EFFECT_ENABLED) then
  		e:SetLabel(1)
  	else
  		e:SetLabel(0)
  	end
  end
  function s.leave(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	if e:GetLabelObject():GetLabel() == 0 and c:IsPreviousControler(tp) then
  		Duel.Damage(tp, 3000, REASON_EFFECT)
  	end
  end
  function s.pdraw(e, tp, eg, ep, ev, re, r, rp)
  	if Duel.GetFieldGroupCount(ep, LOCATION_HAND, 0) == 0 then
  		e:SetLabel(1)
  	else
  		e:SetLabel(0)
  	end
  end
  function s.drcon(e, tp, eg, ep, ev, re, r, rp)
  	return r == REASON_RULE and e:GetLabelObject():GetLabel() == 1
  end
  function s.drtg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetTargetPlayer(ep)
  	Duel.SetTargetParam(1)
  	Duel.SetOperationInfo(0, CATEGORY_DRAW, nil, 0, ep, 1)
  end
  function s.drop(e, tp, eg, ep, ev, re, r, rp)
  	local p, d = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER, CHAININFO_TARGET_PARAM)
  	Duel.Draw(p, d, REASON_EFFECT)
  end
  function s.costcon(e, tp, eg, ep, ev, re, r, rp)
  	return Duel.GetTurnPlayer() == tp
  end
  function s.costop(e, tp, eg, ep, ev, re, r, rp)
  	if Duel.GetLP(tp) >= 700 then
  		Duel.PayLPCost(tp, 700)
  	else
  		Duel.SetLP(tp, 0)
  	end
  end
  
  
source_text: Destructive
  If either player has no cards in their hand at the start of their Draw Phase, they can draw 1 more card in addition to their normal draw. This card's controller loses 700 Life Points during their End Phase. (If less than 700, they become 0 instead.) When this face-up card is removed from the field, inflict 3000 damage to the player who controlled it.
target_text: -- Destructive
  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)
  	c:RegisterEffect(e1)
  	--leave
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
  	e2:SetCode(EVENT_LEAVE_FIELD_P)
  	e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
  	e2:SetOperation(s.checkop)
  	c:RegisterEffect(e2)
  	local e3 = Effect.CreateEffect(c)
  	e3:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
  	e3:SetCode(EVENT_LEAVE_FIELD)
  	e3:SetOperation(s.leave)
  	e3:SetLabelObject(e2)
  	c:RegisterEffect(e3)
  	--Draw
  	local e4 = Effect.CreateEffect(c)
  	e4:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e4:SetCode(EVENT_PREDRAW)
  	e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
  	e4:SetRange(LOCATION_SZONE)
  	e4:SetOperation(s.pdraw)
  	c:RegisterEffect(e4)
  	local e5 = Effect.CreateEffect(c)
  	e5:SetDescription(aux.Stringid(id, 0))
  	e5:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_F)
  	e5:SetCategory(CATEGORY_DRAW)
  	e5:SetRange(LOCATION_SZONE)
  	e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e5:SetCode(EVENT_DRAW)
  	e5:SetCondition(s.drcon)
  	e5:SetTarget(s.drtg)
  	e5:SetOperation(s.drop)
  	e5:SetLabelObject(e4)
  	c:RegisterEffect(e5)
  	--cost
  	local e6 = Effect.CreateEffect(c)
  	e6:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e6:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
  	e6:SetRange(LOCATION_SZONE)
  	e6:SetCode(EVENT_PHASE + PHASE_END)
  	e6:SetCountLimit(1)
  	e6:SetCondition(s.costcon)
  	e6:SetOperation(s.costop)
  	c:RegisterEffect(e6)
  end
  function s.checkop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	if c:IsDisabled() or not c:IsStatus(STATUS_EFFECT_ENABLED) then
  		e:SetLabel(1)
  	else
  		e:SetLabel(0)
  	end
  end
  function s.leave(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	if e:GetLabelObject():GetLabel() == 0 and c:IsPreviousControler(tp) then
  		Duel.Damage(tp, 3000, REASON_EFFECT)
  	end
  end
  function s.pdraw(e, tp, eg, ep, ev, re, r, rp)
  	if Duel.GetFieldGroupCount(ep, LOCATION_HAND, 0) == 0 then
  		e:SetLabel(1)
  	else
  		e:SetLabel(0)
  	end
  end
  function s.drcon(e, tp, eg, ep, ev, re, r, rp)
  	return r == REASON_RULE and e:GetLabelObject():GetLabel() == 1
  end
  function s.drtg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetTargetPlayer(ep)
  	Duel.SetTargetParam(1)
  	Duel.SetOperationInfo(0, CATEGORY_DRAW, nil, 0, ep, 1)
  end
  function s.drop(e, tp, eg, ep, ev, re, r, rp)
  	local p, d = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER, CHAININFO_TARGET_PARAM)
  	Duel.Draw(p, d, REASON_EFFECT)
  end
  function s.costcon(e, tp, eg, ep, ev, re, r, rp)
  	return Duel.GetTurnPlayer() == tp
  end
  function s.costop(e, tp, eg, ep, ev, re, r, rp)
  	if Duel.GetLP(tp) >= 700 then
  		Duel.PayLPCost(tp, 700)
  	else
  		Duel.SetLP(tp, 0)
  	end
  end
  
  