Commit aaabf6ce authored by Amiya's avatar Amiya

修复

parent 8c6d79d5
Pipeline #41478 passed with stages
in 2 minutes and 16 seconds
......@@ -108,11 +108,14 @@ end
function s.eqlimit(e,c)
return c==e:GetLabelObject()
end
function s.cqfilter(c)
return c:GetOriginalType()&TYPE_MONSTER==TYPE_MONSTER
end
function s.adval(e,c)
local eg=c:GetEquipGroup()
local eg=c:GetEquipGroup():Filter(s.cqfilter,nil)
return eg:GetSum(Card.GetOriginalLevel)*300
end
function s.descon(e)
local eg=e:GetHandler():GetEquipGroup()
local eg=e:GetHandler():GetEquipGroup():Filter(s.cqfilter,nil)
return eg:GetSum(Card.GetOriginalLevel)>21
end
\ No newline at end of file
......@@ -67,7 +67,7 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_MZONE,LOCATION_MZONE,nil,TYPE_TOKEN)
g:AddCard(c)
if chk==0 then return Duel.GetMZoneCount(tp,g)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,id+o*2,id,TYPES_TOKEN_MONSTER,0,0,7,RACE_FAIRY,ATTRIBUTE_WATER) end
and Duel.IsPlayerCanSpecialSummonMonster(tp,id+o*2,0,TYPES_TOKEN_MONSTER,0,0,7,RACE_FAIRY,ATTRIBUTE_WATER) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function s.desop(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