2,875
edits
Tag: Undo |
Tag: Undo |
||
Line 80: | Line 80: | ||
end | end | ||
function p.getSpellByProperty(spellProperty, propertyName, spellType | function p.getSpellByProperty(spellProperty, propertyName, spellType) | ||
if spellType == nil then | if spellType == nil then | ||
-- Look for spell in all spellbooks | -- Look for spell in all spellbooks | ||
Line 88: | Line 88: | ||
local spell = GameData.getEntityByProperty(spells, propertyName, spellProperty) | local spell = GameData.getEntityByProperty(spells, propertyName, spellProperty) | ||
if spell ~= nil then | if spell ~= nil then | ||
return spell | |||
end | end | ||
end | end |
edits