Commit 7f3fc6c7b0be9ba2a3b5e2084452cea01c6f0c6e
1 parent
b4a5029a
oups!
git-svn-id: http://svn.net-core.org/repos/t-engine4@4439 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
1 changed file
with
6 additions
and
0 deletions
@@ -343,6 +343,7 @@ function _M:updateKeys(kind) | @@ -343,6 +343,7 @@ function _M:updateKeys(kind) | ||
343 | end | 343 | end |
344 | 344 | ||
345 | function _M:cancel() | 345 | function _M:cancel() |
346 | +--[[ | ||
346 | self.actor.unused_stats = self.actor_dup.unused_stats | 347 | self.actor.unused_stats = self.actor_dup.unused_stats |
347 | self.actor.unused_talents = self.actor_dup.unused_talents | 348 | self.actor.unused_talents = self.actor_dup.unused_talents |
348 | self.actor.unused_generics = self.actor_dup.unused_generics | 349 | self.actor.unused_generics = self.actor_dup.unused_generics |
@@ -366,6 +367,11 @@ function _M:cancel() | @@ -366,6 +367,11 @@ function _M:cancel() | ||
366 | end | 367 | end |
367 | end | 368 | end |
368 | self.actor.last_learnt_talents = self.actor_dup.last_learnt_talents | 369 | self.actor.last_learnt_talents = self.actor_dup.last_learnt_talents |
370 | +]] | ||
371 | + self.actor:replaceWith(self.actor_dup) | ||
372 | + self.actor.changed = true | ||
373 | + self.actor:removeAllMOs() | ||
374 | + if game.level and self.actor.x then game.level.map:updateMap(self.actor.x, self.actor.y) end | ||
369 | end | 375 | end |
370 | 376 | ||
371 | function _M:tabTabs() | 377 | function _M:tabTabs() |
-
Please register or login to post a comment