Skip to content

Commit 02c68c7

Browse files
Merge remote-tracking branch 'upstream/master' into SquidHack
2 parents 8339206 + 61e0e18 commit 02c68c7

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

changelog.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ Template for new versions:
3636

3737
## Removed
3838

39+
# 52.03-r1
40+
41+
## New Tools
42+
43+
## New Features
44+
45+
## Fixes
46+
- `make-legendary`: ``make-legendary all`` will no longer corrupt souls
47+
48+
## Misc Improvements
49+
50+
## Removed
51+
3952
# 52.02-r2
4053

4154
## New Tools

make-legendary.lua

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ function getName(unit)
77
end
88

99
function legendize(unit, skill_idx)
10-
utils.insert_or_update(unit.status.current_soul.skills,
11-
{new=true, id=skill_idx, rating=df.skill_rating.Legendary5},
12-
'id')
10+
if skill_idx >= 0 and skill_idx <= df.job_skill._last_item then
11+
utils.insert_or_update(unit.status.current_soul.skills,
12+
{new=true, id=skill_idx, rating=df.skill_rating.Legendary5},
13+
'id')
14+
end
1315
end
1416

1517
function make_legendary(skillname)
@@ -50,7 +52,9 @@ function BreathOfArmok()
5052
return
5153
end
5254
for i in ipairs(df.job_skill) do
53-
legendize(unit, i)
55+
if i >= 0 then
56+
legendize(unit, i)
57+
end
5458
end
5559
print('The breath of Armok has engulfed ' .. getName(unit))
5660
end

0 commit comments

Comments
 (0)