Release 1.2.2

- Fixed Lioneye's Fall + Serpent Stance interaction
- Added support for Cast on Critical Strike gem
This commit is contained in:
Openarl
2016-11-04 00:56:10 +10:00
parent 4e3d16dd1b
commit 6b1ade0c7c
6 changed files with 77 additions and 6 deletions

View File

@@ -607,6 +607,21 @@ local jewelFuncs = {
if band(mod.flags, mask1) ~= 0 or band(mod.flags, mask2) == mask2 or band(mod.flags, mask3) == mask3 then
out:NewMod(mod.name, mod.type, -mod.value, "Tree:Jewel", mod.flags, mod.keywordFlags, unpack(mod.tagList))
out:NewMod(mod.name, mod.type, mod.value, "Tree:Jewel", bor(band(mod.flags, bnot(bor(mask1, mask2, mask3))), ModFlag.Bow), mod.keywordFlags, unpack(mod.tagList))
elseif mod.tagList[1] then
for _, tag in ipairs(mod.tagList) do
if tag.type == "Condition" and tag.var == "UsingStaff" then
local newTagList = copyTable(mod.tagList)
for _, tag in ipairs(newTagList) do
if tag.type == "Condition" and tag.var == "UsingStaff" then
tag.var = "UsingBow"
break
end
end
out:NewMod(mod.name, mod.type, -mod.value, "Tree:Jewel", mod.flags, mod.keywordFlags, unpack(mod.tagList))
out:NewMod(mod.name, mod.type, mod.value, "Tree:Jewel", mod.flags, mod.keywordFlags, unpack(newTagList))
break
end
end
end
end
end