1
This commit is contained in:
parent
0ceaf7efc6
commit
d615e375b0
@ -862,7 +862,10 @@ void Bullet::ProcFlyHook(Entity* target)
|
|||||||
if (target->IsCreature(room)) {
|
if (target->IsCreature(room)) {
|
||||||
Creature* c = (Creature*)target;
|
Creature* c = (Creature*)target;
|
||||||
room->frame_event.AddPropChg(c->GetWeakPtrRef(), kPropBeHook, 0, sender.Get()->GetUniId());
|
room->frame_event.AddPropChg(c->GetWeakPtrRef(), kPropBeHook, 0, sender.Get()->GetUniId());
|
||||||
int buff_uniid = c->TryAddBuff(c, gun_meta->i->buffid());
|
int buff_uniid = 0;
|
||||||
|
if (!gun_meta->hit_buff_list.empty()) {
|
||||||
|
c->TryAddBuff(c, gun_meta->hit_buff_list[0]);
|
||||||
|
}
|
||||||
c->AutoNavigation(born_pos, gun_meta->i->bullet_speed() * 2,
|
c->AutoNavigation(born_pos, gun_meta->i->bullet_speed() * 2,
|
||||||
[buff_uniid] (Creature* c)
|
[buff_uniid] (Creature* c)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user