Commit 26aeaf48d65610c8ba37df4f53cfee1bc95d9b2e

Authored by zhouhaihai
1 parent 53b7e3b5

bug

Showing 2 changed files with 4 additions and 4 deletions   Show diff stats
src/adv/AdvBattle.lua
1   -local Player, Enemy = table.unpack(require "adv.AdvPlayer")
  1 +local Player, Enemy, Build = table.unpack(require "adv.AdvPlayer")
2 2 local Buff = require "adv.AdvBuff"
3 3 local Passive = require "adv.AdvPassive"
4 4 local Battle = class("Battle")
... ...
src/adv/AdvPlayer.lua
... ... @@ -707,11 +707,11 @@ function Build:getTeam(nType, noSelf, mapIdx, includeLock)
707 707 end
708 708 return team
709 709 end
710   -function Enemy:unlock()
  710 +function Build:unlock()
711 711 self.lock = nil
712 712 end
713 713  
714   -function Enemy:getDB()
  714 +function Build:getDB()
715 715 local db = {}
716 716 db.passives = {}
717 717 for _, passive in ipairs(self.passives) do
... ... @@ -721,4 +721,4 @@ function Enemy:getDB()
721 721 end
722 722  
723 723  
724   -return table.pack(Player, Enemy)
725 724 \ No newline at end of file
  725 +return table.pack(Player, Enemy, Build)
726 726 \ No newline at end of file
... ...