Commit b706f967 authored by DailyShana's avatar DailyShana

fix direct attack

can only direct attack the opponent of the controller of the equip card
parent 93a6a658
......@@ -71,10 +71,14 @@ function c42199039.dtop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DIRECT_ATTACK)
e1:SetCondition(c42199039.dircon)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
ec:RegisterEffect(e1)
end
end
function c42199039.dircon(e)
return e:GetHandler():GetControler()==e:GetOwnerPlayer()
end
function c42199039.thfilter(c)
return c:IsSetCard(0x60) and not c:IsCode(42199039) and c:IsAbleToHand()
end
......
......@@ -13,6 +13,7 @@ function c44762290.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
e2:SetCode(EFFECT_DIRECT_ATTACK)
e2:SetCondition(c44762290.dircon)
c:RegisterEffect(e2)
--equip limit
local e3=Effect.CreateEffect(c)
......@@ -41,3 +42,6 @@ function c44762290.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,e:GetHandler(),tc)
end
end
function c44762290.dircon(e)
return e:GetHandler():GetEquipTarget():GetControler()==e:GetHandlerPlayer()
end
......@@ -38,6 +38,7 @@ function c6430659.atop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DIRECT_ATTACK)
e1:SetCondition(c6430659.dircon)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
tc:RegisterFlagEffect(6430659,RESET_EVENT+RESETS_STANDARD,0,1)
......@@ -52,6 +53,9 @@ function c6430659.atop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp)
end
end
function c6430659.dircon(e)
return e:GetHandler():GetControler()==e:GetOwnerPlayer()
end
function c6430659.tgcon(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
if tc:GetFlagEffect(6430659)~=0 then
......
......@@ -19,6 +19,7 @@ function c95638658.initial_effect(c)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_DIRECT_ATTACK)
e3:SetCondition(c95638658.dircon)
c:RegisterEffect(e3)
--Equip limit
local e4=Effect.CreateEffect(c)
......@@ -41,3 +42,6 @@ function c95638658.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,e:GetHandler(),tc)
end
end
function c95638658.dircon(e)
return e:GetHandler():GetEquipTarget():GetControler()==e:GetHandlerPlayer()
end
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