Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions spec/System/TestTreeTab_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@ describe("TreeTab", function()
assert.are.same("Two Hand Mastery: Gain 10 Damage", report[2].name)
end)

it("restores the bloodline on redo", function()
local spec = build.spec
local bloodlineId = assert(next(spec.tree.alternate_ascendancies))
spec:ResetUndo()
spec:SelectSecondaryAscendClass(bloodlineId)
spec:AddUndoState()
spec:Undo()
spec:Redo()

assert.are.equals(bloodlineId, spec.curSecondaryAscendClassId)
end)

describe("CopyTree", function()
it("Copies a tree spec with a new name", function()
local newTitle = "Copied Tree"
Expand Down
2 changes: 1 addition & 1 deletion src/Classes/PassiveSpec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2433,7 +2433,7 @@ function PassiveSpecClass:CreateUndoState()
return {
classId = self.curClassId,
ascendClassId = self.curAscendClassId,
secondaryAscendClassId = self.secondaryAscendClassId,
secondaryAscendClassId = self.curSecondaryAscendClassId,
hashList = allocNodeIdList,
hashOverrides = hashOverridesCopy,
masteryEffects = selections,
Expand Down
Loading