name: Deepsea
card_text: As long as "Umi" is face-up on the field, this card is unaffected by any Spell Cards.
external_ids: local CARD_ID_0 = 22702055 --Umi
  
lua: local CARD_ID_0 = 22702055 --Umi
  local s, id, o = GetID()
  function s.initial_effect(c)
  	aux.AddCodeList(c, CARD_ID_0)
  	--immune spell
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_IMMUNE_EFFECT)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCondition(s.econ)
  	e1:SetValue(s.efilter)
  	c:RegisterEffect(e1)
  end
  function s.econ(e)
  	return Duel.IsEnvironment(CARD_ID_0)
  end
  function s.efilter(e, te)
  	return te:IsActiveType(TYPE_SPELL)
  end
  
  
source_text: Deepsea
  As long as "Umi" is face-up on the field, this card is unaffected by any Spell Cards.
target_text: -- Deepsea
  local CARD_ID_0 = 22702055 --Umi
  local s, id, o = GetID()
  function s.initial_effect(c)
  	aux.AddCodeList(c, CARD_ID_0)
  	--immune spell
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_IMMUNE_EFFECT)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCondition(s.econ)
  	e1:SetValue(s.efilter)
  	c:RegisterEffect(e1)
  end
  function s.econ(e)
  	return Duel.IsEnvironment(CARD_ID_0)
  end
  function s.efilter(e, te)
  	return te:IsActiveType(TYPE_SPELL)
  end
  
  