Commit 02c39537 authored by wind2009's avatar wind2009

Merge branch 'feat-ritual-space' into 'master'

feat: add support for ritual from extra deck

See merge request !71
parents 6f125c8d e0b3b752
...@@ -1646,7 +1646,17 @@ end ...@@ -1646,7 +1646,17 @@ end
---|"'Equal'" ---|"'Equal'"
---@return boolean ---@return boolean
function Auxiliary.RitualCheck(g,tp,c,lv,greater_or_equal) function Auxiliary.RitualCheck(g,tp,c,lv,greater_or_equal)
return Auxiliary["RitualCheck"..greater_or_equal](g,c,lv) and Duel.GetMZoneCount(tp,g,tp)>0 and (not c.mat_group_check or c.mat_group_check(g,tp)) -- Check if there's space to summon
if c:IsLocation(LOCATION_EXTRA) then
if Duel.GetLocationCountFromEx(tp,tp,g,c)<=0 then
return false
end
else
if Duel.GetMZoneCount(tp,g,tp)<=0 then
return false
end
end
return Auxiliary["RitualCheck"..greater_or_equal](g,c,lv) and (not c.mat_group_check or c.mat_group_check(g,tp))
and (not Auxiliary.RCheckAdditional or Auxiliary.RCheckAdditional(tp,g,c)) and (not Auxiliary.RCheckAdditional or Auxiliary.RCheckAdditional(tp,g,c))
end end
function Auxiliary.RitualCheckAdditionalLevel(c,rc) function Auxiliary.RitualCheckAdditionalLevel(c,rc)
......
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