name: Dragunity
card_text: If this card attacks a Defense Position monster while equipped with a Dragon "Dragunity" monster, inflict piercing battle damage.
external_ids: local SETCARD_ID_0 = 0x29 --Dragunity
  
lua: local SETCARD_ID_0 = 0x29 --Dragunity
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--pierce
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_PIERCE)
  	e1:SetCondition(s.pcon)
  	c:RegisterEffect(e1)
  end
  function s.pfilter(c)
  	return c:IsSetCard(SETCARD_ID_0) and c:IsRace(RACE_DRAGON) and c:IsFaceup()
  end
  function s.pcon(e)
  	return e:GetHandler():GetEquipGroup():IsExists(s.pfilter, 1, nil)
  end
  
  
source_text: Dragunity
  If this card attacks a Defense Position monster while equipped with a Dragon "Dragunity" monster, inflict piercing battle damage.
target_text: -- Dragunity
  local SETCARD_ID_0 = 0x29 --Dragunity
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--pierce
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_PIERCE)
  	e1:SetCondition(s.pcon)
  	c:RegisterEffect(e1)
  end
  function s.pfilter(c)
  	return c:IsSetCard(SETCARD_ID_0) and c:IsRace(RACE_DRAGON) and c:IsFaceup()
  end
  function s.pcon(e)
  	return e:GetHandler():GetEquipGroup():IsExists(s.pfilter, 1, nil)
  end
  
  