name: Talaya,
card_text: Gains 100 ATK for each Plant monster you control. Other Plant monsters on the field cannot be destroyed by card effects.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--atk
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetValue(s.val)
  	c:RegisterEffect(e1)
  	--
  	local e2 = Effect.CreateEffect(c)
  	e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.target)
  	e2:SetValue(1)
  	c:RegisterEffect(e2)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsRace(RACE_PLANT)
  end
  function s.val(e, c)
  	return Duel.GetMatchingGroupCount(s.filter, c:GetControler(), LOCATION_MZONE, 0, nil) * 100
  end
  function s.target(e, c)
  	return c ~= e:GetHandler() and c:IsRace(RACE_PLANT)
  end
  
  
source_text: Talaya,
  Gains 100 ATK for each Plant monster you control. Other Plant monsters on the field cannot be destroyed by card effects.
target_text: -- Talaya,
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--atk
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetValue(s.val)
  	c:RegisterEffect(e1)
  	--
  	local e2 = Effect.CreateEffect(c)
  	e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.target)
  	e2:SetValue(1)
  	c:RegisterEffect(e2)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsRace(RACE_PLANT)
  end
  function s.val(e, c)
  	return Duel.GetMatchingGroupCount(s.filter, c:GetControler(), LOCATION_MZONE, 0, nil) * 100
  end
  function s.target(e, c)
  	return c ~= e:GetHandler() and c:IsRace(RACE_PLANT)
  end
  
  