This commit is contained in:
aozhiwei 2023-12-15 14:15:53 +08:00
parent 37f952a603
commit 4a013c68a6

View File

@ -30,6 +30,8 @@
#include "movement.h" #include "movement.h"
#include "hero.h" #include "hero.h"
#include "skill.h" #include "skill.h"
#include "netdata.h"
#include "cs_proto.pb.h"
#include "mt/Param.h" #include "mt/Param.h"
#include "mt/Equip.h" #include "mt/Equip.h"
@ -1173,5 +1175,12 @@ bool Bullet::IsClientHook()
!sender.Get()) { !sender.Get()) {
return false; return false;
} }
return sender.Get()->IsPlayer(); if (!sender.Get()->IsPlayer()) {
return false;
}
if (sender.Get()->GetBattleContext()->join_msg->proto_version() < 2023121501) {
return false;
} else {
return true;
}
} }