移除无用代码

This commit is contained in:
aozhiwei 2020-05-22 17:01:01 +08:00
parent 36ec24eb8a
commit 1b7b57cbda

View File

@ -47,9 +47,6 @@ void Bullet::OnHit(std::set<Entity*>& objects)
switch (target->entity_type) { switch (target->entity_type) {
case ET_Player: case ET_Player:
{ {
if (App::Instance()->HasFlag(8)) {
return;
}
Human* hum = (Human*)target; Human* hum = (Human*)target;
if (hum->HasBuffEffect(kBET_Invincible) || if (hum->HasBuffEffect(kBET_Invincible) ||
hum->HasBuffEffect(kBET_AdPlaying)) { hum->HasBuffEffect(kBET_AdPlaying)) {