Commit 334038ef authored by wyykak's avatar wyykak

fix element theory

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 58bab7be
...@@ -42,7 +42,7 @@ if not TET.ELCounter then ...@@ -42,7 +42,7 @@ if not TET.ELCounter then
if count>5 then count=5 end if count>5 then count=5 end
if genso == Geo and count>3 then count=3 end if genso == Geo and count>3 then count=3 end
--火为底 --火为底
elseif genso == Pyro then elseif genso == Pyro and count>0 then
--蒸发 --蒸发
if code == Hydro then if code == Hydro then
Duel.Hint(HINT_CARD,0,50701) Duel.Hint(HINT_CARD,0,50701)
...@@ -99,7 +99,7 @@ if not TET.ELCounter then ...@@ -99,7 +99,7 @@ if not TET.ELCounter then
TET.crystal(ze,tp,Mystery) TET.crystal(ze,tp,Mystery)
end end
--水为底 --水为底
elseif genso == Hydro then elseif genso == Hydro and count>0 then
--蒸发 --蒸发
if code == Pyro then if code == Pyro then
Duel.Hint(HINT_CARD,0,50701) Duel.Hint(HINT_CARD,0,50701)
...@@ -136,7 +136,7 @@ if not TET.ELCounter then ...@@ -136,7 +136,7 @@ if not TET.ELCounter then
Duel.Hint(HINT_CARD,0,50705) Duel.Hint(HINT_CARD,0,50705)
count = count-num count = count-num
local cc=te:GetHandler() local cc=te:GetHandler()
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_ONFIELD,0,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)
local gm=Mystery local gm=Mystery
while gm>0 and g:GetCount()>0 do while gm>0 and g:GetCount()>0 do
local tc=g:RandomSelect(tp,1):GetFirst() local tc=g:RandomSelect(tp,1):GetFirst()
...@@ -174,7 +174,7 @@ if not TET.ELCounter then ...@@ -174,7 +174,7 @@ if not TET.ELCounter then
TET.crystal(ze,tp,Mystery) TET.crystal(ze,tp,Mystery)
end end
--雷为底 --雷为底
elseif genso == Electro then elseif genso == Electro and count>0 then
--超载 --超载
if code == Pyro then if code == Pyro then
Duel.Hint(HINT_CARD,0,50702) Duel.Hint(HINT_CARD,0,50702)
...@@ -230,7 +230,7 @@ if not TET.ELCounter then ...@@ -230,7 +230,7 @@ if not TET.ELCounter then
TET.crystal(ze,tp,Mystery) TET.crystal(ze,tp,Mystery)
end end
--冰为底 --冰为底
elseif genso == Cyro then elseif genso == Cyro and count>0 then
--融化 --融化
if code == Pyro then if code == Pyro then
Duel.Hint(HINT_CARD,0,50703) Duel.Hint(HINT_CARD,0,50703)
...@@ -253,7 +253,7 @@ if not TET.ELCounter then ...@@ -253,7 +253,7 @@ if not TET.ELCounter then
Duel.Hint(HINT_CARD,0,50705) Duel.Hint(HINT_CARD,0,50705)
count = count-num count = count-num
local cc=te:GetHandler() local cc=te:GetHandler()
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_ONFIELD,0,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)
local gm=Mystery local gm=Mystery
while gm>0 and g:GetCount()>0 do while gm>0 and g:GetCount()>0 do
local tc=g:RandomSelect(tp,1):GetFirst() local tc=g:RandomSelect(tp,1):GetFirst()
...@@ -310,7 +310,7 @@ if not TET.ELCounter then ...@@ -310,7 +310,7 @@ if not TET.ELCounter then
TET.crystal(ze,tp,Mystery) TET.crystal(ze,tp,Mystery)
end end
--岩为底 --岩为底
elseif genso == Geo then elseif genso == Geo and count>0 then
--结晶 --结晶
if code ~= Anemo then if code ~= Anemo then
count = count-num count = count-num
......
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