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 local Buff = require "adv.AdvBuff" 2 local Buff = require "adv.AdvBuff"
3 local Passive = require "adv.AdvPassive" 3 local Passive = require "adv.AdvPassive"
4 local Battle = class("Battle") 4 local Battle = class("Battle")
src/adv/AdvPlayer.lua
@@ -707,11 +707,11 @@ function Build:getTeam(nType, noSelf, mapIdx, includeLock) @@ -707,11 +707,11 @@ function Build:getTeam(nType, noSelf, mapIdx, includeLock)
707 end 707 end
708 return team 708 return team
709 end 709 end
710 -function Enemy:unlock() 710 +function Build:unlock()
711 self.lock = nil 711 self.lock = nil
712 end 712 end
713 713
714 -function Enemy:getDB() 714 +function Build:getDB()
715 local db = {} 715 local db = {}
716 db.passives = {} 716 db.passives = {}
717 for _, passive in ipairs(self.passives) do 717 for _, passive in ipairs(self.passives) do
@@ -721,4 +721,4 @@ function Enemy:getDB() @@ -721,4 +721,4 @@ function Enemy:getDB()
721 end 721 end
722 722
723 723
724 -return table.pack(Player, Enemy)  
725 \ No newline at end of file 724 \ No newline at end of file
  725 +return table.pack(Player, Enemy, Build)
726 \ No newline at end of file 726 \ No newline at end of file