Skip to content
Snippets Groups Projects
Commit 61a90b3f authored by dg's avatar dg
Browse files

scroll of light/illumination spell dont let a dark spot on the player

git-svn-id: http://svn.net-core.org/repos/t-engine4@677 51575b47-30f0-44d4-a5cc-537603b46e54
parent 143049e4
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ newEntity{ base = "BASE_SCROLL",
cost = 1,
use_simple = { name="light up the surrounding area", use = function(self, who)
who:project({type="ball", range=0, friendlyfire=false, radius=15}, who.x, who.y, engine.DamageType.LIGHT, 1)
who:project({type="ball", range=0, friendlyfire=true, radius=15}, who.x, who.y, engine.DamageType.LIGHT, 1)
game.logSeen(who, "%s reads a %s!", who.name:capitalize(), self:getName())
return "destroy", true
end}
......
......@@ -25,9 +25,10 @@ newTalent{
mana = 5,
cooldown = 14,
action = function(self, t)
local tg = {type="ball", range=0, friendlyfire=false, radius=5 + self:getTalentLevel(t), talent=t}
local tg = {type="ball", range=0, friendlyfire=true, radius=5 + self:getTalentLevel(t), talent=t}
self:project(tg, self.x, self.y, DamageType.LIGHT, 1)
if self:getTalentLevel(t) >= 3 then
tg.friendlyfire = false
self:project(tg, self.x, self.y, DamageType.BLIND, 3 + self:getTalentLevel(t))
end
game:playSoundNear(self, "talents/heal")
......
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