This commit is contained in:
aozhiwei 2023-03-10 17:33:44 +08:00
parent 4d4ed4f0de
commit cb5587340c

View File

@ -883,7 +883,9 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
a8::XPrintf("moving:%d times:%d\n", {moving ? 1 : 0, GetDisableAttackDirTimes()});
#endif
if (moving && GetDisableAttackDirTimes() <= 0) {
SetAttackDir(GetMoveDir());
if (!HasBuffEffect(kBET_HoldShield)) {
SetAttackDir(GetMoveDir());
}
if (GetCar() && GetCar()->IsDriver(this)) {
GetCar()->SetAttackDir(GetAttackDir());
}