Commit 754fc2eb authored by salix5's avatar salix5

Merge pull request #1170 from nekrozar/patch-1

fix D/D Magical Astronomer Galilei, D/D Magical Astronomer Kepler
parents 108c7f4b 16fa27f6
......@@ -65,15 +65,16 @@ end
function c11609969.scop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:GetLeftScale()==1 then return end
local scl=math.max(1,c:GetLeftScale()-2)
local scl=2
if c:GetLeftScale()==2 then scl=1 end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_LSCALE)
e1:SetValue(scl)
e1:SetCode(EFFECT_UPDATE_LSCALE)
e1:SetValue(-scl)
e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CHANGE_RSCALE)
e2:SetCode(EFFECT_UPDATE_RSCALE)
c:RegisterEffect(e2)
local g=Duel.GetMatchingGroup(c11609969.filter,tp,LOCATION_MZONE,0,nil,scl)
if g:GetCount()>0 then
......
......@@ -66,15 +66,16 @@ end
function c74605254.scop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:GetLeftScale()>=10 then return end
local scl=math.min(10,c:GetLeftScale()+2)
local scl=2
if c:GetLeftScale()==9 then scl=1 end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_LSCALE)
e1:SetCode(EFFECT_UPDATE_LSCALE)
e1:SetValue(scl)
e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CHANGE_RSCALE)
e2:SetCode(EFFECT_UPDATE_RSCALE)
c:RegisterEffect(e2)
local g=Duel.GetMatchingGroup(c74605254.filter,tp,LOCATION_MZONE,0,nil,scl)
if g:GetCount()>0 then
......
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