1
This commit is contained in:
parent
1502ed1278
commit
93ae48e62f
@ -1080,7 +1080,13 @@ void Bullet::ProcRequestBulletDmg(int shield_hit, int strength_wall_uniid, int t
|
||||
if (trace_target_id == target_uniid) {
|
||||
Entity* entity = room->GetEntityByUniId(trace_target_id);
|
||||
if (entity && entity->IsCreature(room)) {
|
||||
Creature* c = (Creature*)entity;
|
||||
if (sender.Get() && sender.Get()->IsHuman()) {
|
||||
sender.Get()->AsHuman()->stats->IncWeaponUseTimes(gun_meta->id(), 1);
|
||||
}
|
||||
std::set<Entity*> objects;
|
||||
objects.insert(entity);
|
||||
OnHit(objects);
|
||||
AddGunBuff();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user