This commit is contained in:
aozhiwei 2021-06-15 22:47:56 +08:00
parent 8f1d5d73d1
commit 0f60fa5631
2 changed files with 9 additions and 1 deletions

View File

@ -494,7 +494,7 @@ bool Obstacle::Attackable()
bool Obstacle::Throughable()
{
return meta->i->attack_type() == 2 || meta->i->attack_type() == 3;
return meta->i->attack_type() == 2;
}
int Obstacle::GetTeamId(Room* room)

View File

@ -90,6 +90,14 @@ void RoomObstacle::RecalcSelfCollider()
#endif
#endif
}
for (auto collider : colliders_) {
collider->tag = collider_tag;
collider->param1 = collider_param1;
collider->param2 = collider_param2;
if (meta->i->attack_type() == 3) {
a8::SetBitFlag(collider->tag, kHalfWallTag);
}
}
}
void RoomObstacle::ActiveTimerFunc()