Commit 14f0b393 authored by Nemo Ma's avatar Nemo Ma

fix

parent 418bcc5c
......@@ -68,7 +68,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
local c,ec=e:GetHandler(),eg:GetFirst()
if chk==0 then return (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or ec:IsLocation(LOCATION_SZONE)) and (ec:IsControler(tp) or (ec:IsAbleToChangeControler() and not ec:IsLocation(LOCATION_SZONE))) and c:GetFlagEffect(14000201)~=0 and re:GetHandler()~=c and c:GetFlagEffect(m)==0 and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ec:GetEquipTarget()~=c end
if chk==0 then return (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or ec:IsLocation(LOCATION_SZONE)) and (ec:IsControler(tp) or ec:IsAbleToChangeControler() or ec:IsLocation(LOCATION_SZONE)) and c:GetFlagEffect(14000201)~=0 and re:GetHandler()~=c and c:GetFlagEffect(m)==0 and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ec:GetEquipTarget()~=c end
Duel.SetOperationInfo(0,CATEGORY_EQUIP,eg,1,0,0)
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -80,7 +80,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
local c,ec=e:GetHandler(),eg:GetFirst()
if chk==0 then return (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or ec:IsLocation(LOCATION_SZONE)) and (ec:IsControler(tp) or (ec:IsAbleToChangeControler() and not ec:IsLocation(LOCATION_SZONE))) and c:GetFlagEffect(14000202)~=0 and re:GetHandler()~=c and c:GetFlagEffect(m)==0 and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ec:GetEquipTarget()~=c end
if chk==0 then return (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or ec:IsLocation(LOCATION_SZONE)) and (ec:IsControler(tp) or ec:IsAbleToChangeControler() or ec:IsLocation(LOCATION_SZONE)) and c:GetFlagEffect(14000202)~=0 and re:GetHandler()~=c and c:GetFlagEffect(m)==0 and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ec:GetEquipTarget()~=c end
Duel.SetOperationInfo(0,CATEGORY_EQUIP,eg,1,0,0)
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -80,7 +80,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
local c,ec=e:GetHandler(),eg:GetFirst()
if chk==0 then return (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or ec:IsLocation(LOCATION_SZONE)) and (ec:IsControler(tp) or (ec:IsAbleToChangeControler() and not ec:IsLocation(LOCATION_SZONE))) and c:GetFlagEffect(14000203)~=0 and re:GetHandler()~=c and c:GetFlagEffect(m)<2 and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ec:GetEquipTarget()~=c end
if chk==0 then return (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or ec:IsLocation(LOCATION_SZONE)) and (ec:IsControler(tp) or ec:IsAbleToChangeControler() or ec:IsLocation(LOCATION_SZONE)) and c:GetFlagEffect(14000203)~=0 and re:GetHandler()~=c and c:GetFlagEffect(m)<2 and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ec:GetEquipTarget()~=c end
Duel.SetOperationInfo(0,CATEGORY_EQUIP,eg,1,0,0)
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -79,7 +79,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
local c,ec=e:GetHandler(),eg:GetFirst()
if chk==0 then return (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or ec:IsLocation(LOCATION_SZONE)) and (ec:IsControler(tp) or (ec:IsAbleToChangeControler() and not ec:IsLocation(LOCATION_SZONE))) and c:GetFlagEffect(14000204)~=0 and re:GetHandler()~=c and c:GetFlagEffect(m)<3 and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ec:GetEquipTarget()~=c end
if chk==0 then return (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or ec:IsLocation(LOCATION_SZONE)) and (ec:IsControler(tp) or ec:IsAbleToChangeControler() or ec:IsLocation(LOCATION_SZONE)) and c:GetFlagEffect(14000204)~=0 and re:GetHandler()~=c and c:GetFlagEffect(m)<3 and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ec:GetEquipTarget()~=c end
Duel.SetOperationInfo(0,CATEGORY_EQUIP,eg,1,0,0)
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -39,7 +39,7 @@ cm.lvdncount=5
cm.lvdn={14000201,14000202,14000203,14000204,14000205}
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
local c,ec=e:GetHandler(),eg:GetFirst()
if chk==0 then return (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or ec:IsLocation(LOCATION_SZONE)) and (ec:IsControler(tp) or (ec:IsAbleToChangeControler() and not ec:IsLocation(LOCATION_SZONE))) and c:GetFlagEffect(14000205)~=0 and re:GetHandler()~=c and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ec:GetEquipTarget()~=c end
if chk==0 then return (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or ec:IsLocation(LOCATION_SZONE)) and (ec:IsControler(tp) or ec:IsAbleToChangeControler() or ec:IsLocation(LOCATION_SZONE)) and c:GetFlagEffect(14000205)~=0 and re:GetHandler()~=c and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ec:GetEquipTarget()~=c end
Duel.SetOperationInfo(0,CATEGORY_EQUIP,eg,1,0,0)
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
......
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