This commit is contained in:
aozhiwei 2021-08-16 10:56:49 +08:00
parent 7f210879ee
commit 6fc860f3d1

View File

@ -105,6 +105,13 @@ void InternalShot(Creature* c,
if (skill_id == 0) { if (skill_id == 0) {
c->room->frame_event.AddShot(c->GetWeakPtrRef()); c->room->frame_event.AddShot(c->GetWeakPtrRef());
} }
if (weapon_meta->i->cast_time() > 0) {
int buff_uniid = c->TryAddBuff(c, kVertigoBuffId);
Buff* buff = c->GetBuffByUniId(buff_uniid);
if (buff && buff->remover_timer) {
c->room->xtimer.ModifyTimer(buff->remover_timer, weapon_meta->i->cast_time() / FRAME_RATE_MS);
}
}
a8::Vec2 old_context_dir = c->context_dir; a8::Vec2 old_context_dir = c->context_dir;
a8::Vec2 old_context_pos = c->context_pos; a8::Vec2 old_context_pos = c->context_pos;
c->context_dir =c->GetAttackDir(); c->context_dir =c->GetAttackDir();