1
This commit is contained in:
parent
e070f8df3b
commit
5aec58c788
@ -121,9 +121,9 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
|
|||||||
Human* target = nullptr;
|
Human* target = nullptr;
|
||||||
room->TraverseHumanList
|
room->TraverseHumanList
|
||||||
(
|
(
|
||||||
[weapon_id, &target] (Human* hum) mutable
|
[this, weapon_id, &target] (Human* hum) mutable
|
||||||
{
|
{
|
||||||
if (hum->IsAndroid() && !hum->dead) {
|
if (hum->IsAndroid() && !hum->dead && hum->team_id != team_id) {
|
||||||
if (hum->AsAndroid()->robot_meta->weapon_id() == weapon_id) {
|
if (hum->AsAndroid()->robot_meta->weapon_id() == weapon_id) {
|
||||||
target = hum;
|
target = hum;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user