This commit is contained in:
aozhiwei 2023-03-02 14:26:59 +08:00
parent 0ab7d1561d
commit 25516d479a
3 changed files with 12 additions and 1 deletions

View File

@ -3371,3 +3371,13 @@ void Human::CalcAssists(Human* target)
}); });
} }
} }
void Human::ProcThrowDmg(int throw_uniid)
{
auto itr = pending_throw_bomb.find(throw_uniid);
if (itr == pending_throw_bomb.end()) {
return;
}
auto context = *itr;
pending_throw_bomb.erase(throw_uniid);
}

View File

@ -393,6 +393,7 @@ class Human : public Creature
int GetTeamMode(); int GetTeamMode();
void NotifyTeamMarkTargetPos(); void NotifyTeamMarkTargetPos();
void CalcAssists(Human* target); void CalcAssists(Human* target);
void ProcThrowDmg(int throw_uniid);
protected: protected:
void ProcLootWeapon(AddItemDTO& dto); void ProcLootWeapon(AddItemDTO& dto);

View File

@ -1339,7 +1339,7 @@ void Player::_CMRequestBulletDmg(f8::MsgHdr& hdr, const cs::CMRequestBulletDmg&
void Player::_CMRequestThrowDmg(f8::MsgHdr& hdr, const cs::CMRequestThrowDmg& msg) void Player::_CMRequestThrowDmg(f8::MsgHdr& hdr, const cs::CMRequestThrowDmg& msg)
{ {
ProcThrowDmg(msg.throw_uniid());
} }
void Player::_CMStowShield(f8::MsgHdr& hdr, const cs::CMStowShield& msg) void Player::_CMStowShield(f8::MsgHdr& hdr, const cs::CMStowShield& msg)