Skip to content
Snippets Groups Projects
Commit 285d6049 authored by dg's avatar dg
Browse files

Channel Staff does not say if it crits before targetting

git-svn-id: http://svn.net-core.org/repos/t-engine4@1620 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3539ef52
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,10 @@ newTalent{
elseif combat.damtype == DamageType.BLIGHT then explosion = "slime" particle = "bolt_slime" trail = "slimetrail"
end
local tg = {type="bolt", range=self:getTalentRange(t), talent=t, display = {particle=particle, trail=trail}}
local x, y = self:getTarget(tg)
if not x or not y then return nil end
-- Compute damage
local dam = self:combatDamage(combat)
local damrange = self:combatDamageRange(combat)
......@@ -58,9 +62,6 @@ newTalent{
dam = self:spellCrit(dam)
dam = dam * self:combatTalentWeaponDamage(t, 0.4, 1.1)
local tg = {type="bolt", range=self:getTalentRange(t), talent=t, display = {particle=particle, trail=trail}}
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:projectile(tg, x, y, combat.damtype, dam, {type=explosion})
game:playSoundNear(self, "talents/arcane")
......
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