Commit 445e5f1f authored by argon.sun's avatar argon.sun

fix

parent 652b6d75
......@@ -46,12 +46,13 @@ function c20686759.operation(e,tp,eg,ep,ev,re,r,rp)
end
function c20686759.damcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ec=c:GetPreviousEquipTarget()
local ec=c:GetEquipTarget()
return c:IsReason(REASON_LOST_TARGET) and ec and ec:IsReason(REASON_DESTROY)
end
function c20686759.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local dam=e:GetHandler():GetPreviousEquipTarget():GetBaseAttack()
if dam<0 then dam=0 end
e:SetLabel(dam)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,dam)
end
......
......@@ -59,8 +59,7 @@ function c21790410.eqlimit(e,c)
return e:GetOwner()==c
end
function c21790410.cfilter(c,ec,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp)
and c:IsHasCardTarget(ec) and c:GetPreviousEquipTarget()==ec
return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and c:GetEquipTarget()==ec
end
function c21790410.shcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c21790410.cfilter,1,nil,e:GetHandler(),tp)
......
......@@ -26,7 +26,7 @@ function c38450736.initial_effect(c)
e3:SetDescription(aux.Stringid(38450736,1))
e3:SetCategory(CATEGORY_ATKCHANGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_TO_GRAVE)
e3:SetCode(EVENT_LEAVE_FIELD)
e3:SetCondition(c38450736.atkcon)
e3:SetTarget(c38450736.atktg)
e3:SetOperation(c38450736.atkop)
......@@ -63,14 +63,14 @@ function c38450736.eqlimit(e,c)
end
function c38450736.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ec=c:GetPreviousEquipTarget()
local ec=c:GetEquipTarget()
e:SetLabelObject(ec)
return c:IsPreviousLocation(LOCATION_SZONE) and not c:IsReason(REASON_LOST_TARGET)
return ec and c:IsLocation(LOCATION_GRAVE) and ec:IsFaceup() and ec:IsLocation(LOCATION_MZONE)
end
function c38450736.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local ec=e:GetLabelObject()
ec:CreateEffectRelation(e)
Duel.SetTargetCard(ec)
end
function c38450736.atkop(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetLabelObject()
......
......@@ -63,8 +63,7 @@ function c43366227.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c43366227.cfilter(c,ec,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp)
and c:IsHasCardTarget(ec) and c:GetPreviousEquipTarget()==ec
return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and c:GetEquipTarget()==ec
end
function c43366227.descon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c43366227.cfilter,1,nil,e:GetHandler(),tp)
......
......@@ -71,7 +71,7 @@ end
function c50418970.damcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ec=c:GetPreviousEquipTarget()
return c:IsReason(REASON_LOST_TARGET) and ec:GetLocation()==LOCATION_HAND
return c:IsReason(REASON_LOST_TARGET) and ec:IsLocation(LOCATION_HAND)
end
function c50418970.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -22,7 +22,7 @@ function c53610653.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetValue(c53610653.eqlimit)
c:RegisterEffect(e3)
--draw
--spsummon
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(53610653,0))
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
......
......@@ -59,8 +59,7 @@ function c68184115.eqlimit(e,c)
return e:GetOwner()==c
end
function c68184115.cfilter(c,ec,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp)
and c:IsHasCardTarget(ec) and c:GetPreviousEquipTarget()==ec
return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and c:GetEquipTarget()==ec
end
function c68184115.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c68184115.cfilter,1,nil,e:GetHandler(),tp)
......
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