Skip to content
Snippets Groups Projects
Commit 9b8a513f authored by DarkGod's avatar DarkGod
Browse files

if arcane combat's selected spell is on CD, do not trigger a random one; respect the player's wish

parent 5286fad1
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ newTalent{
end
end
-- If no appropriate spell is selected, pick a random spell
if #spells < 1 then
if #spells < 1 and (not p or not p.talent) then
for _, talent in pairs(self.talents_def) do
if t.canUseTalent(self, t, talent) then
spells[#spells+1] = talent.id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment