name: Night
card_text: Change all non-Wyrm-Type Attack Position monsters that were Special Summoned from the Main or Extra Deck to Defense Position. All non-Wyrm-Type monsters that were Special Summoned from the Main or Extra Deck lose DEF equal to their original DEF.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--pos change
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_SET_POSITION)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTarget(s.target)
  	e1:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e1:SetValue(POS_FACEUP_DEFENSE)
  	c:RegisterEffect(e1)
  	--def
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_UPDATE_DEFENSE)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.deftg)
  	e2:SetValue(s.defval)
  	c:RegisterEffect(e2)
  end
  function s.target(e, c)
  	return c:IsFaceup() and not c:IsRace(RACE_WYRM) and c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsSummonLocation(LOCATION_DECK + LOCATION_EXTRA)
  end
  function s.deftg(e, c)
  	return c:IsFaceup() and not c:IsRace(RACE_WYRM) and c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsSummonLocation(LOCATION_DECK + LOCATION_EXTRA)
  end
  function s.defval(e, c)
  	return -c:GetBaseDefense()
  end
  
  
source_text: Night
  Change all non-Wyrm-Type Attack Position monsters that were Special Summoned from the Main or Extra Deck to Defense Position. All non-Wyrm-Type monsters that were Special Summoned from the Main or Extra Deck lose DEF equal to their original DEF.
target_text: -- Night
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--pos change
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_SET_POSITION)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTarget(s.target)
  	e1:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e1:SetValue(POS_FACEUP_DEFENSE)
  	c:RegisterEffect(e1)
  	--def
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_UPDATE_DEFENSE)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.deftg)
  	e2:SetValue(s.defval)
  	c:RegisterEffect(e2)
  end
  function s.target(e, c)
  	return c:IsFaceup() and not c:IsRace(RACE_WYRM) and c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsSummonLocation(LOCATION_DECK + LOCATION_EXTRA)
  end
  function s.deftg(e, c)
  	return c:IsFaceup() and not c:IsRace(RACE_WYRM) and c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsSummonLocation(LOCATION_DECK + LOCATION_EXTRA)
  end
  function s.defval(e, c)
  	return -c:GetBaseDefense()
  end
  
  