name: Goblin
card_text: As long as this card remains face-up on your side of the field, neither player can activate an effect by discarding from his/her hand.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--discard limit
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(1, 1)
  	e1:SetCode(EFFECT_CANNOT_DISCARD_HAND)
  	e1:SetTarget(s.target)
  	e1:SetValue(1)
  	c:RegisterEffect(e1)
  end
  function s.target(e, dc, re, r)
  	return r & REASON_COST == REASON_COST
  end
  
  
source_text: Goblin
  As long as this card remains face-up on your side of the field, neither player can activate an effect by discarding from his/her hand.
target_text: -- Goblin
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--discard limit
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(1, 1)
  	e1:SetCode(EFFECT_CANNOT_DISCARD_HAND)
  	e1:SetTarget(s.target)
  	e1:SetValue(1)
  	c:RegisterEffect(e1)
  end
  function s.target(e, dc, re, r)
  	return r & REASON_COST == REASON_COST
  end
  
  