name: Man
card_text: After a Chain (of 2 or more Links) resolves, this card gains 500 ATK.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--chain
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
  	e1:SetCode(EVENT_CHAINING)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetOperation(s.chop)
  	c:RegisterEffect(e1)
  	--atkup
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e2:SetCode(EVENT_CHAIN_END)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetCondition(s.atkcon)
  	e2:SetOperation(s.atkop)
  	e2:SetLabelObject(e1)
  	c:RegisterEffect(e2)
  end
  function s.chop(e, tp, eg, ep, ev, re, r, rp)
  	if Duel.GetCurrentChain() == 1 then
  		e:SetLabel(0)
  	else
  		e:SetLabel(1)
  	end
  end
  function s.atkcon(e, tp, eg, ep, ev, re, r, rp)
  	local res = e:GetLabelObject():GetLabel()
  	e:GetLabelObject():SetLabel(0)
  	return res == 1
  end
  function s.atkop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetValue(500)
  	e1:SetReset(RESET_EVENT + RESETS_STANDARD + RESET_DISABLE)
  	c:RegisterEffect(e1)
  end
  
  
source_text: Man
  After a Chain (of 2 or more Links) resolves, this card gains 500 ATK.
target_text: -- Man
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--chain
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
  	e1:SetCode(EVENT_CHAINING)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetOperation(s.chop)
  	c:RegisterEffect(e1)
  	--atkup
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e2:SetCode(EVENT_CHAIN_END)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetCondition(s.atkcon)
  	e2:SetOperation(s.atkop)
  	e2:SetLabelObject(e1)
  	c:RegisterEffect(e2)
  end
  function s.chop(e, tp, eg, ep, ev, re, r, rp)
  	if Duel.GetCurrentChain() == 1 then
  		e:SetLabel(0)
  	else
  		e:SetLabel(1)
  	end
  end
  function s.atkcon(e, tp, eg, ep, ev, re, r, rp)
  	local res = e:GetLabelObject():GetLabel()
  	e:GetLabelObject():SetLabel(0)
  	return res == 1
  end
  function s.atkop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetValue(500)
  	e1:SetReset(RESET_EVENT + RESETS_STANDARD + RESET_DISABLE)
  	c:RegisterEffect(e1)
  end
  
  