Skip to content
Snippets Groups Projects
Commit 2fa79dd9 authored by DarkGod's avatar DarkGod
Browse files

fix

parent 64c10fb1
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,11 @@ newTalent{
game.logPlayer(self, "You must be holding a staff.")
return
end
-- Terrible sanity check to make sure staff.element is defined
if not staff.combat.element then
staff.combat.element = staff.combat.damtype or engine.DamageType.PHYSICAL
end
local state = {}
local Chat = require("engine.Chat")
local chat = Chat.new("command-staff", {name="Command Staff"}, self, {version=staff, state=state, co=coroutine.running()})
......
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