name: Tyrant's
card_text: Tribute 1 monster to activate this card. All face-up monsters on the field that you own are unaffected by other Trap Cards.
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:SetCost(s.cost)
  	c:RegisterEffect(e1)
  	--immune
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_IMMUNE_EFFECT)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.etarget)
  	e2:SetValue(s.efilter)
  	c:RegisterEffect(e2)
  end
  function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.CheckReleaseGroup(tp, nil, 1, nil)
  	end
  	local rg = Duel.SelectReleaseGroup(tp, nil, 1, 1, nil)
  	Duel.Release(rg, REASON_COST)
  end
  function s.etarget(e, c)
  	return c:GetOwner() == e:GetHandlerPlayer()
  end
  function s.efilter(e, te)
  	return te:IsActiveType(TYPE_TRAP) and te:GetOwner() ~= e:GetOwner()
  end
  
  
source_text: Tyrant's
  Tribute 1 monster to activate this card. All face-up monsters on the field that you own are unaffected by other Trap Cards.
target_text: -- Tyrant's
  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:SetCost(s.cost)
  	c:RegisterEffect(e1)
  	--immune
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_IMMUNE_EFFECT)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.etarget)
  	e2:SetValue(s.efilter)
  	c:RegisterEffect(e2)
  end
  function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.CheckReleaseGroup(tp, nil, 1, nil)
  	end
  	local rg = Duel.SelectReleaseGroup(tp, nil, 1, 1, nil)
  	Duel.Release(rg, REASON_COST)
  end
  function s.etarget(e, c)
  	return c:GetOwner() == e:GetHandlerPlayer()
  end
  function s.efilter(e, te)
  	return te:IsActiveType(TYPE_TRAP) and te:GetOwner() ~= e:GetOwner()
  end
  
  