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

Oups

git-svn-id: http://svn.net-core.org/repos/t-engine4@2668 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1e7cac6c
No related branches found
No related tags found
No related merge requests found
......@@ -64,13 +64,13 @@ start_ambush = function(self, who)
-- Go through all effects and disable them
local effs = {}
for eff_id, p in pairs(actor.tmp) do
local e = actor.tempeffect_def[eff_id]
for eff_id, p in pairs(self.tmp) do
local e = self.tempeffect_def[eff_id]
effs[#effs+1] = {"effect", eff_id}
end
while #effs > 0 do
local eff = rng.tableRemove(effs)
actor:removeEffect(eff[2])
self:removeEffect(eff[2])
end
-- Protect from other hits on the same turn
......
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