Dimensional
When an opponent's monster declares an attack: Target that attacking monster; banish that target.
local s, id, o = GetID()
function s.initial_effect(c)
	--Activate
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_REMOVE)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_ATTACK_ANNOUNCE)
	e1:SetCondition(s.condition)
	e1:SetTarget(s.target)
	e1:SetOperation(s.activate)
	c:RegisterEffect(e1)
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return tp ~= Duel.GetTurnPlayer()
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	local tg = Duel.GetAttacker()
	if chkc then
		return chkc == tg
	end
	if chk == 0 then
		return tg:IsOnField() and tg:IsAbleToRemove() and tg:IsCanBeEffectTarget(e)
	end
	Duel.SetTargetCard(tg)
	Duel.SetOperationInfo(0, CATEGORY_REMOVE, tg, 1, 0, 0)
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
	local tc = Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) and tc:IsAttackable() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then
		Duel.Remove(tc, POS_FACEUP, REASON_EFFECT)
	end
end


Dimensional
When an opponent's monster declares an attack: Target that attacking monster; banish that target.
-- Dimensional
local s, id, o = GetID()
function s.initial_effect(c)
	--Activate
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_REMOVE)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_ATTACK_ANNOUNCE)
	e1:SetCondition(s.condition)
	e1:SetTarget(s.target)
	e1:SetOperation(s.activate)
	c:RegisterEffect(e1)
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return tp ~= Duel.GetTurnPlayer()
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	local tg = Duel.GetAttacker()
	if chkc then
		return chkc == tg
	end
	if chk == 0 then
		return tg:IsOnField() and tg:IsAbleToRemove() and tg:IsCanBeEffectTarget(e)
	end
	Duel.SetTargetCard(tg)
	Duel.SetOperationInfo(0, CATEGORY_REMOVE, tg, 1, 0, 0)
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
	local tc = Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) and tc:IsAttackable() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then
		Duel.Remove(tc, POS_FACEUP, REASON_EFFECT)
	end
end

