name: Fairy
card_text: While this card is in Defense Position, all Plant-Type monsters you control gain 500 ATK and DEF.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(LOCATION_MZONE, 0)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetCondition(s.con)
  	e1:SetTarget(s.tg)
  	e1:SetValue(500)
  	c:RegisterEffect(e1)
  	local e2 = e1:Clone()
  	e2:SetCode(EFFECT_UPDATE_DEFENSE)
  	e2:SetValue(500)
  	c:RegisterEffect(e2)
  end
  function s.con(e)
  	return e:GetHandler():IsDefensePos()
  end
  function s.tg(e, c)
  	return c:IsRace(RACE_PLANT)
  end
  
  
source_text: Fairy
  While this card is in Defense Position, all Plant-Type monsters you control gain 500 ATK and DEF.
target_text: -- Fairy
  local s, id, o = GetID()
  function s.initial_effect(c)
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(LOCATION_MZONE, 0)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetCondition(s.con)
  	e1:SetTarget(s.tg)
  	e1:SetValue(500)
  	c:RegisterEffect(e1)
  	local e2 = e1:Clone()
  	e2:SetCode(EFFECT_UPDATE_DEFENSE)
  	e2:SetValue(500)
  	c:RegisterEffect(e2)
  end
  function s.con(e)
  	return e:GetHandler():IsDefensePos()
  end
  function s.tg(e, c)
  	return c:IsRace(RACE_PLANT)
  end
  
  