Commit 334038ef authored by wyykak's avatar wyykak

fix element theory

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