Commit 3c54ea0c authored by sidschingis's avatar sidschingis

fix

now properly allows opponent monsters to attack directly
parent d64ee64a
......@@ -12,8 +12,8 @@ function c29400787.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetTarget(c99795159.bttg)
e2:SetValue(c99795159.btval)
e2:SetTarget(c29400787.bttg)
e2:SetValue(c29400787.btval)
c:RegisterEffect(e2)
--direct attack
local e3=Effect.CreateEffect(c)
......@@ -22,7 +22,7 @@ function c29400787.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e3:SetRange(LOCATION_SZONE)
e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e3:SetCondition(c99795159.dircon)
e3:SetCondition(c29400787.dircon)
c:RegisterEffect(e3)
--tohand
local e4=Effect.CreateEffect(c)
......@@ -67,3 +67,13 @@ function c29400787.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g)
end
end
function c29400787.bttg(e,c)
return c:IsFacedown()
end
function c29400787.btval(e,c)
return not c:IsImmuneToEffect(e)
end
function c29400787.dircon(e)
local tp=Duel.GetTurnPlayer()
return not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
end
\ No newline at end of file
......@@ -65,6 +65,6 @@ function c7617062.btval(e,c)
return not c:IsImmuneToEffect(e)
end
function c7617062.dircon(e)
local tp=e:GetHandler():GetControler()
local tp=Duel.GetTurnPlayer()
return not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
end
\ No newline at end of file
......@@ -46,6 +46,6 @@ function c99795159.btval(e,c)
return not c:IsImmuneToEffect(e)
end
function c99795159.dircon(e)
local tp=e:GetHandler():GetControler()
local tp=Duel.GetTurnPlayer()
return not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment