|
|
@ -15,11 +15,10 @@ end |
|
|
|
|
|
|
|
|
|
|
|
-- Get a spell from the spellbook |
|
|
|
-- Get a spell from the spellbook |
|
|
|
---@param id number |
|
|
|
---@param id number |
|
|
|
---@param traits? table |
|
|
|
|
|
|
|
---@return Spell |
|
|
|
---@return Spell |
|
|
|
function SpellBook:GetSpell(id, traits) |
|
|
|
function SpellBook:GetSpell(id) |
|
|
|
if self.spells[id] == nil then |
|
|
|
if self.spells[id] == nil then |
|
|
|
self.spells[id] = Bastion.Spell:New(id, traits) |
|
|
|
self.spells[id] = Bastion.Spell:New(id) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
return self.spells[id] |
|
|
|
return self.spells[id] |
|
|
|