name: Kishido
card_text: Monsters on your side of the field cannot be destroyed in a battle if the monsters' ATK are equal.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	c:RegisterEffect(e1)
  	--indes
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTargetRange(LOCATION_MZONE, 0)
  	e2:SetTarget(s.indtg)
  	e2:SetValue(s.indval)
  	c:RegisterEffect(e2)
  end
  function s.indtg(e, c)
  	e:SetLabel(c:GetAttack())
  	return true
  end
  function s.indval(e, c)
  	return c:IsAttack(e:GetLabel())
  end
  
  
source_text: Kishido
  Monsters on your side of the field cannot be destroyed in a battle if the monsters' ATK are equal.
target_text: -- Kishido
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	c:RegisterEffect(e1)
  	--indes
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTargetRange(LOCATION_MZONE, 0)
  	e2:SetTarget(s.indtg)
  	e2:SetValue(s.indval)
  	c:RegisterEffect(e2)
  end
  function s.indtg(e, c)
  	e:SetLabel(c:GetAttack())
  	return true
  end
  function s.indval(e, c)
  	return c:IsAttack(e:GetLabel())
  end
  
  