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