name: Ojama
card_text: "Ojama Green" + "Ojama Yellow" + "Ojama Black"
  Choose up to 3 of your opponent's unused Monster Zones. Those zones cannot be used.
external_ids: local CARD_ID_0 = 79335209 --Ojama Black
  local CARD_ID_1 = 12482652 --Ojama Green
  local CARD_ID_2 = 42941100 --Ojama Yellow
  
lua: local CARD_ID_0 = 79335209 --Ojama Black
  local CARD_ID_1 = 12482652 --Ojama Green
  local CARD_ID_2 = 42941100 --Ojama Yellow
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--fusion material
  	c:EnableReviveLimit()
  	aux.AddFusionProcCode3(c, CARD_ID_1, CARD_ID_2, CARD_ID_0, true, true)
  	--disable field
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_DISABLE_FIELD)
  	e1:SetOperation(s.disop)
  	c:RegisterEffect(e1)
  end
  function s.disop(e, tp)
  	local c = Duel.GetLocationCount(1 - tp, LOCATION_MZONE, PLAYER_NONE, 0)
  	if c == 0 then
  		return
  	end
  	local dis1 = Duel.SelectDisableField(tp, 1, 0, LOCATION_MZONE, 0)
  	if c > 1 and Duel.SelectYesNo(tp, aux.Stringid(id, 0)) then
  		local dis2 = Duel.SelectDisableField(tp, 1, 0, LOCATION_MZONE, dis1)
  		dis1 = bit.bor(dis1, dis2)
  		if c > 2 and Duel.SelectYesNo(tp, aux.Stringid(id, 0)) then
  			local dis3 = Duel.SelectDisableField(tp, 1, 0, LOCATION_MZONE, dis1)
  			dis1 = bit.bor(dis1, dis3)
  		end
  	end
  	return dis1
  end
  
  
source_text: Ojama
  "Ojama Green" + "Ojama Yellow" + "Ojama Black"
  Choose up to 3 of your opponent's unused Monster Zones. Those zones cannot be used.
target_text: -- Ojama
  local CARD_ID_0 = 79335209 --Ojama Black
  local CARD_ID_1 = 12482652 --Ojama Green
  local CARD_ID_2 = 42941100 --Ojama Yellow
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--fusion material
  	c:EnableReviveLimit()
  	aux.AddFusionProcCode3(c, CARD_ID_1, CARD_ID_2, CARD_ID_0, true, true)
  	--disable field
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_DISABLE_FIELD)
  	e1:SetOperation(s.disop)
  	c:RegisterEffect(e1)
  end
  function s.disop(e, tp)
  	local c = Duel.GetLocationCount(1 - tp, LOCATION_MZONE, PLAYER_NONE, 0)
  	if c == 0 then
  		return
  	end
  	local dis1 = Duel.SelectDisableField(tp, 1, 0, LOCATION_MZONE, 0)
  	if c > 1 and Duel.SelectYesNo(tp, aux.Stringid(id, 0)) then
  		local dis2 = Duel.SelectDisableField(tp, 1, 0, LOCATION_MZONE, dis1)
  		dis1 = bit.bor(dis1, dis2)
  		if c > 2 and Duel.SelectYesNo(tp, aux.Stringid(id, 0)) then
  			local dis3 = Duel.SelectDisableField(tp, 1, 0, LOCATION_MZONE, dis1)
  			dis1 = bit.bor(dis1, dis3)
  		end
  	end
  	return dis1
  end
  
  