From 8fd442cac038df371bc1dd60516a7d90c57d10ba Mon Sep 17 00:00:00 2001 From: Alexander Sedov <alex0player@gmail.com> Date: Sat, 11 Apr 2015 07:58:47 +0300 Subject: [PATCH] whoops forgot to add staff combat --- game/modules/tome/data/talents/spells/staff-combat.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/data/talents/spells/staff-combat.lua b/game/modules/tome/data/talents/spells/staff-combat.lua index 07a4077e48..3db41f2994 100644 --- a/game/modules/tome/data/talents/spells/staff-combat.lua +++ b/game/modules/tome/data/talents/spells/staff-combat.lua @@ -17,6 +17,8 @@ -- Nicolas Casalini "DarkGod" -- darkgod@te4.org +local DamageType = require "engine.DamageType" + newTalent{ name = "Channel Staff", type = {"spell/staff-combat", 1}, @@ -46,7 +48,7 @@ newTalent{ local particle = "bolt_fire" local explosion = "flame" - local damtype = combat.element or combat.damtype or engine.DamageType.PHYSICAL + local damtype = combat.element or combat.damtype or DamageType.ARCANE if damtype == DamageType.FIRE then explosion = "flame" particle = "bolt_fire" trail = "firetrail" elseif damtype == DamageType.COLD then explosion = "freeze" particle = "ice_shards" trail = "icetrail" -- GitLab