|
|
@@ -21,6 +21,16 @@ local HeroExcel = require("excel.hero")
|
|
|
local HeroLogic = require("hero.HeroLogic")
|
|
|
local ChatPaoMaLogic = require("chat.ChatPaoMaLogic")
|
|
|
|
|
|
+--英雄兑换ID
|
|
|
+ABS_ACT_ID_HERODRAW=10001
|
|
|
+
|
|
|
+function onZero(human,funcID)
|
|
|
+ local state=AbsActLogic.isStarted(human, funcID)
|
|
|
+ if not state then
|
|
|
+ human.db.absAct[ABS_ACT_ID_HERODRAW] = nil
|
|
|
+ end
|
|
|
+end
|
|
|
+
|
|
|
function isOpen(human, YYInfo, funcConfig)
|
|
|
return AbsActLogic.isStarted(human, funcConfig.funcID)
|
|
|
end
|