Commit 5d29fd0a authored by GuGu's avatar GuGu

Update c99999602.lua 狂梦适配

parent 7cc44321
Pipeline #32835 passed with stage
in 11 seconds
...@@ -52,8 +52,38 @@ function c99999602.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,8 +52,38 @@ function c99999602.activate(e,tp,eg,ep,ev,re,r,rp)
if token:IsLocation(LOCATION_SZONE) then if token:IsLocation(LOCATION_SZONE) then
c200210.operation(e,tp,eg,ep,ev,re,r,rp) c200210.operation(e,tp,eg,ep,ev,re,r,rp)
token:CancelToGrave(false) token:CancelToGrave(false)
Duel.BreakEffect() if c:IsLocation(LOCATION_SZONE) and c:IsRelateToEffect(e) and not c:IsLocation(LOCATION_PZONE+LOCATION_FZONE) then
Duel.MoveToField(e:GetHandler(),tp,1-tp,LOCATION_SZONE,POS_FACEUP,true) if Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0 then
Duel.BreakEffect()
Duel.MoveToField(c,tp,1-tp,LOCATION_SZONE,POS_FACEUP,true)
else
Duel.SendtoGrave(c,REASON_RULE)
end
end
if c:IsType(TYPE_PENDULUM) and c:IsLocation(LOCATION_PZONE) and c:IsRelateToEffect(e) then
if Duel.CheckLocation(1-tp,LOCATION_SZONE,0) or Duel.CheckLocation(1-tp,LOCATION_SZONE,4) then
Duel.BreakEffect()
Duel.MoveToField(c,tp,1-tp,LOCATION_PZONE,POS_FACEUP,true)
else
Duel.SendtoGrave(c,REASON_RULE)
end
end
if c:IsLocation(LOCATION_FZONE) and c:IsRelateToEffect(e) then
if Duel.CheckLocation(1-tp,LOCATION_SZONE,5) then
Duel.BreakEffect()
Duel.MoveToField(c,tp,1-tp,LOCATION_FZONE,POS_FACEUP,true)
else
Duel.SendtoGrave(c,REASON_RULE)
end
end
if c:IsLocation(LOCATION_MZONE) and c:IsRelateToEffect(e) then
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 then
Duel.BreakEffect()
Duel.GetControl(c,1-tp)
else
Duel.SendtoGrave(c,REASON_RULE)
end
end
end end
end end
function c99999602.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c99999602.tg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -67,8 +97,38 @@ function c99999602.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,8 +97,38 @@ function c99999602.op(e,tp,eg,ep,ev,re,r,rp)
if token:IsLocation(LOCATION_SZONE) then if token:IsLocation(LOCATION_SZONE) then
c200210.operation(e,tp,eg,ep,ev,re,r,rp) c200210.operation(e,tp,eg,ep,ev,re,r,rp)
token:CancelToGrave(false) token:CancelToGrave(false)
Duel.BreakEffect() if c:IsLocation(LOCATION_SZONE) and c:IsRelateToEffect(e) and not c:IsLocation(LOCATION_PZONE+LOCATION_FZONE) then
Duel.MoveToField(e:GetHandler(),tp,1-tp,LOCATION_SZONE,POS_FACEUP,true) if Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0 then
Duel.BreakEffect()
Duel.MoveToField(c,tp,1-tp,LOCATION_SZONE,POS_FACEUP,true)
else
Duel.SendtoGrave(c,REASON_RULE)
end
end
if c:IsType(TYPE_PENDULUM) and c:IsLocation(LOCATION_PZONE) and c:IsRelateToEffect(e) then
if Duel.CheckLocation(1-tp,LOCATION_SZONE,0) or Duel.CheckLocation(1-tp,LOCATION_SZONE,4) then
Duel.BreakEffect()
Duel.MoveToField(c,tp,1-tp,LOCATION_PZONE,POS_FACEUP,true)
else
Duel.SendtoGrave(c,REASON_RULE)
end
end
if c:IsLocation(LOCATION_FZONE) and c:IsRelateToEffect(e) then
if Duel.CheckLocation(1-tp,LOCATION_SZONE,5) then
Duel.BreakEffect()
Duel.MoveToField(c,tp,1-tp,LOCATION_FZONE,POS_FACEUP,true)
else
Duel.SendtoGrave(c,REASON_RULE)
end
end
if c:IsLocation(LOCATION_MZONE) and c:IsRelateToEffect(e) then
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 then
Duel.BreakEffect()
Duel.GetControl(c,1-tp)
else
Duel.SendtoGrave(c,REASON_RULE)
end
end
end end
end end
function c99999602.sdcon(e,tp,eg,ep,ev,re,r,rp) function c99999602.sdcon(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