This commit is contained in:
aozhiwei 2021-08-16 10:35:37 +08:00
parent a7bbafe436
commit 7f210879ee

View File

@ -102,6 +102,9 @@ void InternalShot(Creature* c,
{
if (weapon_meta->i->_inventory_slot() == IS_TRAP ||
weapon_meta->i->_inventory_slot() == IS_MINE) {
if (skill_id == 0) {
c->room->frame_event.AddShot(c->GetWeakPtrRef());
}
a8::Vec2 old_context_dir = c->context_dir;
a8::Vec2 old_context_pos = c->context_pos;
c->context_dir =c->GetAttackDir();