Commit 13997b2c authored by mercury233's avatar mercury233
parent 04a5bba2
......@@ -29,7 +29,8 @@ function c33145233.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CLIENT_HINT)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetValue(aux.tgoval)
e1:SetLabel(ep)
e1:SetValue(c33145233.tgval)
e1:SetReset(RESET_EVENT+0x1fe0000)
rc:RegisterEffect(e1,true)
rc:RegisterFlagEffect(33145233,RESET_EVENT+0x1fe0000,0,1)
......@@ -37,3 +38,6 @@ function c33145233.operation(e,tp,eg,ep,ev,re,r,rp)
rc=eg:GetNext()
end
end
function c33145233.tgval(e,re,rp)
return rp==1-e:GetLabel()
end
......@@ -22,12 +22,15 @@ function c4141820.operation(e,tp,eg,ep,ev,re,r,rp)
local rc=eg:GetFirst()
while rc do
if rc:GetFlagEffect(4141820)==0 then
--draw
--discard
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(4141820,0))
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_BATTLE_DAMAGE)
e1:SetRange(LOCATION_MZONE)
e1:SetLabel(ep)
e1:SetCondition(c4141820.hdcon)
e1:SetOperation(c4141820.hdop)
e1:SetReset(RESET_EVENT+0x1fe0000)
rc:RegisterEffect(e1,true)
......@@ -36,6 +39,10 @@ function c4141820.operation(e,tp,eg,ep,ev,re,r,rp)
rc=eg:GetNext()
end
end
function c4141820.hdcon(e,tp,eg,ep,ev,re,r,rp)
return ep==1-e:GetLabel()
end
function c4141820.hdop(e,tp,eg,ep,ev,re,r,rp)
Duel.DiscardHand(1-tp,nil,1,1,REASON_EFFECT+REASON_DISCARD)
Duel.Hint(HINT_CARD,0,4141820)
Duel.DiscardHand(1-e:GetLabel(),nil,1,1,REASON_EFFECT+REASON_DISCARD)
end
......@@ -50,10 +50,11 @@ function c70117860.efop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetRange(LOCATION_MZONE)
e1:SetLabel(ep)
e1:SetValue(c70117860.tgval)
e1:SetReset(RESET_EVENT+0x1fe0000)
rc:RegisterEffect(e1)
end
function c70117860.tgval(e,re,rp)
return rp~=e:GetHandlerPlayer()
return rp==1-e:GetLabel()
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