Commit ff7ddfdf authored by DailyShana's avatar DailyShana

fix

parent a0f8d79f
...@@ -42,11 +42,11 @@ end ...@@ -42,11 +42,11 @@ end
function c61307542.efilter(e,re) function c61307542.efilter(e,re)
return re:IsActiveType(TYPE_MONSTER) and re:GetOwner()~=e:GetOwner() return re:IsActiveType(TYPE_MONSTER) and re:GetOwner()~=e:GetOwner()
end end
function c61307542.cfilter(c) function c61307542.cfilter(c,tp)
return c:IsType(TYPE_TRAP) and c:IsPreviousLocation(LOCATION_SZONE) and c:GetPreviousSequence()<5 return c:IsType(TYPE_TRAP) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_SZONE) and c:GetPreviousSequence()<5
end end
function c61307542.condition(e,tp,eg,ep,ev,re,r,rp) function c61307542.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c61307542.cfilter,1,nil) return eg:IsExists(c61307542.cfilter,1,nil,tp)
end end
function c61307542.target(e,tp,eg,ep,ev,re,r,rp,chk) function c61307542.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end
......
...@@ -37,13 +37,13 @@ function c61420130.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,13 +37,13 @@ function c61420130.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END)
e1:SetValue(tc:GetAttack()/2) e1:SetValue(tc:GetAttack()/2)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(e:GetHandler()) local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_SET_DEFENCE_FINAL) e2:SetCode(EFFECT_SET_DEFENCE_FINAL)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END)
e2:SetValue(tc:GetDefence()/2) e2:SetValue(tc:GetDefence()/2)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end 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