Commit b5693acb authored by VanillaSalt's avatar VanillaSalt

fix

parent 741b50f0
......@@ -56,12 +56,16 @@ function c70913714.eqop(e,tp,eg,ep,ev,re,r,rp)
e4:SetCategory(CATEGORY_CONTROL)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetCondition(c70913714.ctcon)
e4:SetTarget(c70913714.cttg)
e4:SetOperation(c70913714.ctop)
e4:SetReset(RESET_EVENT+0x1020000)
c:RegisterEffect(e4)
end
end
function c70913714.ctcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsReason(REASON_LOST_TARGET)
end
function c70913714.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local ec=e:GetHandler():GetPreviousEquipTarget()
......
......@@ -44,10 +44,10 @@ function c73130445.desop(e,tp,eg,ep,ev,re,r,rp)
end
function c73130445.cfilter(c,tp)
return c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE)
and (c:IsReason(REASON_EFFECT) or (c:IsReason(REASON_BATTLE) and Duel.GetAttacker():IsControler(1-tp)))
and c:GetReasonPlayer()~=tp and (c:IsReason(REASON_EFFECT) or (c:IsReason(REASON_BATTLE) and c==Duel.GetAttackTarget()))
end
function c73130445.drcon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and eg:IsExists(c73130445.cfilter,1,nil,tp)
return eg:IsExists(c73130445.cfilter,1,nil,tp)
end
function c73130445.filter(c)
return c:IsFaceup() and c:IsSetCard(0x9f)
......
......@@ -46,15 +46,13 @@ function c81907872.posop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(c,POS_FACEDOWN_DEFENCE)
end
end
function c81907872.cfilter1(c,tp)
return c:IsControler(tp) and c:GetPreviousControler()==tp and c:IsReason(REASON_DESTROY) and c:IsReason(REASON_EFFECT)
and c:IsSetCard(0x8d) and c:IsType(TYPE_MONSTER) and not c:IsPreviousLocation(LOCATION_SZONE)
end
function c81907872.cfilter2(c)
return c:IsReason(REASON_BATTLE) and c:IsStatus(STATUS_OPPO_BATTLE) and c==Duel.GetAttackTarget()
function c81907872.cfilter(c,tp)
return c:IsControler(tp) and c:GetPreviousControler()==tp and c:IsReason(REASON_DESTROY) and c:GetReasonPlayer()~=tp
and c:IsSetCard(0x8d) and c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_MZONE)
and (c:IsReason(REASON_EFFECT) or (c:IsReason(REASON_BATTLE) and c==Duel.GetAttackTarget()))
end
function c81907872.spcon(e,tp,eg,ep,ev,re,r,rp)
return (rp~=tp and eg:IsExists(c81907872.cfilter1,1,nil,tp)) or eg:IsExists(c81907872.cfilter2,1,nil)
return eg:IsExists(c81907872.cfilter,1,nil,tp)
end
function c81907872.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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