Skip to content
Snippets Groups Projects
Commit 75a9e7a4 authored by DarkGod's avatar DarkGod
Browse files

PartyMember class now inherits PlayerHotkeys, ensuring that talents switches...

PartyMember class now inherits PlayerHotkeys, ensuring that talents switches happen even if not in control
parent 7c4ddf3f
No related branches found
No related tags found
No related merge requests found
......@@ -20,11 +20,13 @@
require "engine.class"
require "mod.class.NPC"
require "mod.class.interface.PartyDeath"
require "engine.interface.PlayerHotkeys"
module(..., package.seeall, class.inherit(mod.class.NPC, mod.class.interface.PartyDeath))
module(..., package.seeall, class.inherit(mod.class.NPC, mod.class.interface.PartyDeath, engine.interface.PlayerHotkeys))
function _M:init(t, no_default)
mod.class.NPC.init(self, t, no_default)
engine.interface.PlayerHotkeys.init(self, t)
-- Set correct AI
if self.ai ~= "party_member" and not self.no_party_ai then
......
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