name: Alligator's
card_text: "Baby Dragon" + "Alligator's Sword"
  This card can attack your opponent directly if the only face-up monsters they control are EARTH, WATER, or FIRE.
external_ids: local CARD_ID_0 = 88819587 --Baby Dragon
  local CARD_ID_1 = 64428736 --Alligator's Sword
  
lua: local CARD_ID_0 = 88819587 --Baby Dragon
  local CARD_ID_1 = 64428736 --Alligator's Sword
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--fusion material
  	c:EnableReviveLimit()
  	aux.AddFusionProcCode2(c, CARD_ID_0, CARD_ID_1, true, true)
  	--direct attack
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_SINGLE)
  	e2:SetCode(EFFECT_DIRECT_ATTACK)
  	e2:SetCondition(s.dircon)
  	c:RegisterEffect(e2)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsAttribute(0xf8)
  end
  function s.dircon(e)
  	local tp = e:GetHandlerPlayer()
  	return Duel.IsExistingMatchingCard(Card.IsFaceup, tp, 0, LOCATION_MZONE, 1, nil) and not Duel.IsExistingMatchingCard(s.filter, tp, 0, LOCATION_MZONE, 1, nil)
  end
  
  
source_text: Alligator's
  "Baby Dragon" + "Alligator's Sword"
  This card can attack your opponent directly if the only face-up monsters they control are EARTH, WATER, or FIRE.
target_text: -- Alligator's
  local CARD_ID_0 = 88819587 --Baby Dragon
  local CARD_ID_1 = 64428736 --Alligator's Sword
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--fusion material
  	c:EnableReviveLimit()
  	aux.AddFusionProcCode2(c, CARD_ID_0, CARD_ID_1, true, true)
  	--direct attack
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_SINGLE)
  	e2:SetCode(EFFECT_DIRECT_ATTACK)
  	e2:SetCondition(s.dircon)
  	c:RegisterEffect(e2)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsAttribute(0xf8)
  end
  function s.dircon(e)
  	local tp = e:GetHandlerPlayer()
  	return Duel.IsExistingMatchingCard(Card.IsFaceup, tp, 0, LOCATION_MZONE, 1, nil) and not Duel.IsExistingMatchingCard(s.filter, tp, 0, LOCATION_MZONE, 1, nil)
  end
  
  