1
This commit is contained in:
parent
3f87ed3fa7
commit
73fc8b0a3d
@ -74,7 +74,7 @@ void Bullet::OnHit(std::vector<Entity*>& objects)
|
||||
case ET_Player:
|
||||
{
|
||||
Human* hum = (Human*)target;
|
||||
if (!hum->dead) {
|
||||
if (!hum->dead && (hum->team_id == 0 || hum->team_id != player->team_id)) {
|
||||
player->stats.damage_amount += 10;
|
||||
hum->DecHP(10, player->entity_uniid, player->name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user