From a210caad3a3451fca909a8d6040a5f13098b3d34 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 30 Jul 2019 10:37:35 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 3f0e666..90de112 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -26,6 +26,7 @@ #include "framework/cpp/httpclientpool.h" const int GRASS_HIDE_BUFF_ID = 1016; +const int REVIVE_BUFF_ID = 1003; Human::Human():Entity() { @@ -1885,7 +1886,7 @@ void Human::Revive() status = 0; ClearBuffList(); { - MetaData::Buff* buff_meta = MetaMgr::Instance()->GetBuff(1003); + MetaData::Buff* buff_meta = MetaMgr::Instance()->GetBuff(REVIVE_BUFF_ID); if (buff_meta) { AddBuff(buff_meta, 1); } @@ -1909,7 +1910,7 @@ void Human::ImmediatelyRevive() status = 0; ClearBuffList(); { - MetaData::Buff* buff_meta = MetaMgr::Instance()->GetBuff(1003); + MetaData::Buff* buff_meta = MetaMgr::Instance()->GetBuff(REVIVE_BUFF_ID); if (buff_meta) { AddBuff(buff_meta, 1); }