name: Dinomic
card_text: All "Dinomist" monsters on the field gain 300 ATK and DEF. If a "Dinomist" monster you control battles, your opponent cannot activate cards or effects until the end of the Damage Step.
external_ids: local SETCARD_ID_0 = 0xd8 --Dinomist
  
lua: local SETCARD_ID_0 = 0xd8 --Dinomist
  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)
  	--atk up
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_UPDATE_ATTACK)
  	e2:SetRange(LOCATION_FZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard, SETCARD_ID_0))
  	e2:SetValue(300)
  	c:RegisterEffect(e2)
  	local e3 = e2:Clone()
  	e3:SetCode(EFFECT_UPDATE_DEFENSE)
  	c:RegisterEffect(e3)
  	--actlimit
  	local e4 = Effect.CreateEffect(c)
  	e4:SetType(EFFECT_TYPE_FIELD)
  	e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e4:SetCode(EFFECT_CANNOT_ACTIVATE)
  	e4:SetRange(LOCATION_FZONE)
  	e4:SetTargetRange(0, 1)
  	e4:SetValue(1)
  	e4:SetCondition(s.actcon)
  	c:RegisterEffect(e4)
  end
  function s.cfilter(c, tp)
  	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0) and c:IsControler(tp)
  end
  function s.actcon(e)
  	local tp = e:GetHandlerPlayer()
  	local a = Duel.GetAttacker()
  	local d = Duel.GetAttackTarget()
  	return (a and s.cfilter(a, tp)) or (d and s.cfilter(d, tp))
  end
  
  
source_text: Dinomic
  All "Dinomist" monsters on the field gain 300 ATK and DEF. If a "Dinomist" monster you control battles, your opponent cannot activate cards or effects until the end of the Damage Step.
target_text: -- Dinomic
  local SETCARD_ID_0 = 0xd8 --Dinomist
  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)
  	--atk up
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_UPDATE_ATTACK)
  	e2:SetRange(LOCATION_FZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard, SETCARD_ID_0))
  	e2:SetValue(300)
  	c:RegisterEffect(e2)
  	local e3 = e2:Clone()
  	e3:SetCode(EFFECT_UPDATE_DEFENSE)
  	c:RegisterEffect(e3)
  	--actlimit
  	local e4 = Effect.CreateEffect(c)
  	e4:SetType(EFFECT_TYPE_FIELD)
  	e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e4:SetCode(EFFECT_CANNOT_ACTIVATE)
  	e4:SetRange(LOCATION_FZONE)
  	e4:SetTargetRange(0, 1)
  	e4:SetValue(1)
  	e4:SetCondition(s.actcon)
  	c:RegisterEffect(e4)
  end
  function s.cfilter(c, tp)
  	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0) and c:IsControler(tp)
  end
  function s.actcon(e)
  	local tp = e:GetHandlerPlayer()
  	local a = Duel.GetAttacker()
  	local d = Duel.GetAttackTarget()
  	return (a and s.cfilter(a, tp)) or (d and s.cfilter(d, tp))
  end
  
  