This commit is contained in:
aozhiwei 2019-04-16 15:56:30 +08:00
parent b068a4c801
commit b08e14d2cb

View File

@ -74,7 +74,11 @@ void Bullet::OnHit(std::vector<Entity*>& objects)
case ET_Player:
{
Human* hum = (Human*)target;
#if 1
if (!hum->dead) {
#else
if (!hum->dead && (hum->team_id == 0 || hum->team_id != player->team_id)) {
#endif
player->stats.damage_amount += 10;
hum->DecHP(10, player->entity_uniid, player->name);
}