name: Bujingi
card_text: While this card is in face-up Defense Position, other "Bujin" monsters you control cannot be destroyed by card effects.
external_ids: local SETCARD_ID_0 = 0x88 --Bujin
  
lua: local SETCARD_ID_0 = 0x88 --Bujin
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(LOCATION_MZONE, 0)
  	e1:SetTarget(s.target)
  	e1:SetCondition(s.con)
  	e1:SetValue(1)
  	c:RegisterEffect(e1)
  end
  function s.con(e)
  	return e:GetHandler():IsDefensePos()
  end
  function s.target(e, c)
  	return c ~= e:GetHandler() and c:IsSetCard(SETCARD_ID_0)
  end
  
  
source_text: Bujingi
  While this card is in face-up Defense Position, other "Bujin" monsters you control cannot be destroyed by card effects.
target_text: -- Bujingi
  local SETCARD_ID_0 = 0x88 --Bujin
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(LOCATION_MZONE, 0)
  	e1:SetTarget(s.target)
  	e1:SetCondition(s.con)
  	e1:SetValue(1)
  	c:RegisterEffect(e1)
  end
  function s.con(e)
  	return e:GetHandler():IsDefensePos()
  end
  function s.target(e, c)
  	return c ~= e:GetHandler() and c:IsSetCard(SETCARD_ID_0)
  end
  
  