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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4639 51575b47-30f0-44d4-a5cc-537603b46e54
parent b1e2bcda
No related branches found
No related tags found
No related merge requests found
......@@ -220,13 +220,15 @@ newTalent{
BUFF = function(self, t, target)
local nb = 0
for eff_id, p in pairs(self.tmp) do
local e = self.tempeffect_def[eff_id]
if e.status == "beneficial" then nb = nb + 1 end
end
return nb
return nb
end,
CURE = function(self, t, target)
local nb = 0
for eff_id, p in pairs(self.tmp) do
local e = self.tempeffect_def[eff_id]
if e.status == "detrimental" then nb = nb + 1 end
end
return nb
......@@ -618,8 +620,8 @@ newTalent{
cooldown = function(self, t) return 50 - self:getTalentLevel(t) * 4 end,
tactical = { DEFEND = 1, HEAL = 2, CURE = function(self, t, target)
local nb = 0
for eff_id, p in pairs(target.tmp) do
local e = target.tempeffect_def[eff_id]
for eff_id, p in pairs(self.tmp) do
local e = self.tempeffect_def[eff_id]
if e.status == "detrimental" and (e.type == "physical" or e.type == "magical" or e.type == "mental") then
nb = nb + 1
end
......
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