name: Dragon
card_text: Change all face-up Dragon-Type monsters on the field to Defense Position, also they cannot change their battle positions.
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)
  	--Pos Change
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_SET_POSITION)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTarget(aux.TargetBoolFunction(Card.IsRace, RACE_DRAGON))
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetValue(POS_FACEUP_DEFENSE)
  	c:RegisterEffect(e2)
  	local e3 = e2:Clone()
  	e3:SetCode(EFFECT_CANNOT_CHANGE_POSITION)
  	c:RegisterEffect(e3)
  end
  
  
source_text: Dragon
  Change all face-up Dragon-Type monsters on the field to Defense Position, also they cannot change their battle positions.
target_text: -- Dragon
  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)
  	--Pos Change
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_SET_POSITION)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTarget(aux.TargetBoolFunction(Card.IsRace, RACE_DRAGON))
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetValue(POS_FACEUP_DEFENSE)
  	c:RegisterEffect(e2)
  	local e3 = e2:Clone()
  	e3:SetCode(EFFECT_CANNOT_CHANGE_POSITION)
  	c:RegisterEffect(e3)
  end
  
  