name: White
card_text: When your opponent activates "Dark Hole": Monsters you control cannot be destroyed by that "Dark Hole's" effect.
external_ids: local CARD_ID_0 = 53129443 --Dark Hole
  
lua: local CARD_ID_0 = 53129443 --Dark Hole
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_CHAINING)
  	e1:SetCondition(s.condition)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	return rp == 1 - tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsCode(CARD_ID_0)
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	local cid = Duel.GetChainInfo(ev, CHAININFO_CHAIN_ID)
  	local e1 = Effect.CreateEffect(e:GetHandler())
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
  	e1:SetTargetRange(LOCATION_MZONE, 0)
  	e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
  	e1:SetValue(s.indval)
  	e1:SetReset(RESET_CHAIN)
  	e1:SetLabel(cid)
  	Duel.RegisterEffect(e1, tp)
  end
  function s.indval(e, re, rp)
  	return Duel.GetChainInfo(0, CHAININFO_CHAIN_ID) == e:GetLabel()
  end
  
  
source_text: White
  When your opponent activates "Dark Hole": Monsters you control cannot be destroyed by that "Dark Hole's" effect.
target_text: -- White
  local CARD_ID_0 = 53129443 --Dark Hole
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_CHAINING)
  	e1:SetCondition(s.condition)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	return rp == 1 - tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsCode(CARD_ID_0)
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	local cid = Duel.GetChainInfo(ev, CHAININFO_CHAIN_ID)
  	local e1 = Effect.CreateEffect(e:GetHandler())
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
  	e1:SetTargetRange(LOCATION_MZONE, 0)
  	e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
  	e1:SetValue(s.indval)
  	e1:SetReset(RESET_CHAIN)
  	e1:SetLabel(cid)
  	Duel.RegisterEffect(e1, tp)
  end
  function s.indval(e, re, rp)
  	return Duel.GetChainInfo(0, CHAININFO_CHAIN_ID) == e:GetLabel()
  end
  
  