1
This commit is contained in:
parent
74509caafb
commit
5db5fcf1a0
@ -240,7 +240,7 @@ void Bullet::ProcMissible(const a8::XParams& param)
|
||||
{
|
||||
Human* sender = (Human*)param.sender.GetUserData();
|
||||
MetaData::Equip* bullet_meta = MetaMgr::Instance()->GetEquip(param.param1);
|
||||
if (sender && bullet_meta) {
|
||||
if (sender && bullet_meta && !sender->room->IsGameOver()) {
|
||||
Human* target = sender->room->GetHumanByUniId(param.param2);
|
||||
if (target && !target->dead) {
|
||||
target->DecHP(10, sender->entity_uniid, sender->name, bullet_meta->i->id());
|
||||
|
Loading…
x
Reference in New Issue
Block a user