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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@2454 51575b47-30f0-44d4-a5cc-537603b46e54
parent e34c120b
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ newAI("dumb_talented", function(self)
for tid, _ in pairs(self.talents) do
local t = self:getTalentFromId(tid)
-- print(self.name, self.uid, "dumb ai talents can try use", t.name, tid, "::", t.mode, not self:isTalentCoolingDown(t), target_dist <= self:getTalentRange(t), self:preUseTalent(t, true), self:canProject({type="bolt"}, self.ai_target.actor.x, self.ai_target.actor.y))
if t.mode == "activated" and
if t.mode == "activated" and not t.no_npc_use and
not self:isTalentCoolingDown(t) and
target_dist <= self:getTalentRange(t)
and self:preUseTalent(t, true, true) and
......@@ -36,7 +36,7 @@ newAI("dumb_talented", function(self)
then
avail[#avail+1] = tid
print(self.name, self.uid, "dumb ai talents can use", t.name, tid)
elseif t.mode == "sustained" and not self:isTalentCoolingDown(t) and
elseif t.mode == "sustained" and not t.no_npc_use and not self:isTalentCoolingDown(t) and
not self:isTalentActive(t.id) and
self:preUseTalent(t, true, true)
then
......
......@@ -10,7 +10,7 @@ newAI("use_tactical", function(self)
for tid, lvl in pairs(self.talents) do
local t = self:getTalentFromId(tid)
-- print(self.name, self.uid, "dumb ai talents can try use", t.name, tid, "::", t.mode, not self:isTalentCoolingDown(t), target_dist <= self:getTalentRange(t), self:preUseTalent(t, true), self:canProject({type="bolt"}, self.ai_target.actor.x, self.ai_target.actor.y))
if t.mode == "activated" and
if t.mode == "activated" and not t.no_npc_use and
not self:isTalentCoolingDown(t) and
self:preUseTalent(t, true, true) and
(not t.requires_target or (
......@@ -31,7 +31,7 @@ newAI("use_tactical", function(self)
ok = true
end
end
elseif t.mode == "sustained" and not self:isTalentCoolingDown(t) and
elseif t.mode == "sustained" and not t.no_npc_use and not self:isTalentCoolingDown(t) and
not self:isTalentActive(t.id) and
self:preUseTalent(t, true, true)
then
......
......@@ -54,7 +54,7 @@ newEntity{
e.max_life = e.max_life * 0.50
e.life = e.max_life
e.resists.all = 20
e.lite = nil,
e.lite = nil
-- AI
e.ai_state.sense_radius = 6
......
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