diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 2bf8751..2f9981d 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -301,7 +301,7 @@ function RolePlugin.bind(Role) newHero.owner = self newHero:saveBattleValue() self.heros[heroId] = newHero - self:checkTaskEnter(role.TaskType.AddHero, {heroType = heroType, wakeL = newHero:getProperty("wakeL")}, params.notNotify) + self:checkTaskEnter(self.TaskType.AddHero, {heroType = heroType, wakeL = newHero:getProperty("wakeL")}, params.notNotify) if not params.notNotify then local heroResponse = {} table.insert(heroResponse, newHero:data()) -- libgit2 0.21.2