From 2b4c46448b5b0aa0e84ea9f9c370dc8cda425a4d Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Fri, 12 Jul 2019 13:48:08 +0800 Subject: [PATCH] role -> self bug --- src/models/RolePlugin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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