Commit 5a89d6516c802c9b43884d45ac5c8dff294c2593
1 parent
1e7cac6c
Oups
git-svn-id: http://svn.net-core.org/repos/t-engine4@2668 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
1 changed file
with
3 additions
and
3 deletions
... | ... | @@ -64,13 +64,13 @@ start_ambush = function(self, who) |
64 | 64 | |
65 | 65 | -- Go through all effects and disable them |
66 | 66 | local effs = {} |
67 | - for eff_id, p in pairs(actor.tmp) do | |
68 | - local e = actor.tempeffect_def[eff_id] | |
67 | + for eff_id, p in pairs(self.tmp) do | |
68 | + local e = self.tempeffect_def[eff_id] | |
69 | 69 | effs[#effs+1] = {"effect", eff_id} |
70 | 70 | end |
71 | 71 | while #effs > 0 do |
72 | 72 | local eff = rng.tableRemove(effs) |
73 | - actor:removeEffect(eff[2]) | |
73 | + self:removeEffect(eff[2]) | |
74 | 74 | end |
75 | 75 | |
76 | 76 | -- Protect from other hits on the same turn | ... | ... |
-
Please register or login to post a comment