This commit is contained in:
aozhiwei 2021-08-31 16:23:34 +08:00
parent 4c0e738d99
commit beffffff30
4 changed files with 1 additions and 6 deletions

View File

@ -476,8 +476,7 @@ void Obstacle::OnBulletHit(Bullet* bullet)
return;
}
if (!IsDead(bullet->room) &&
!IsTerminatorAirDropBox(bullet->room)) {
if (!IsDead(bullet->room)) {
if (meta->receive_special_damage_type != 0 &&
((bullet->gun_meta->special_damage_type & meta->receive_special_damage_type) == 0)) {
return;

View File

@ -45,7 +45,6 @@ class Obstacle : public Entity
virtual void OnBulletHit(Bullet* bullet) override;
virtual void OnExplosionHit(Explosion* explosion) override;
virtual bool Attackable(Room* room) override;
virtual bool IsTerminatorAirDropBox(Room* room) { return false; }
virtual bool CanThroughable(Creature* c);
virtual bool CanThroughable(Bullet* bullet);
virtual bool DoInteraction(Human* sender);

View File

@ -350,7 +350,6 @@ private:
int creator_channel_ = 0;
bool force_entry_newbie_room_ = false;
xtimer_list* battle_report_timer_ = nullptr;
bool sent_terminator_airdrop = false;
int current_teamid_ = 0;
int current_uniid_ = FIXED_OBJECT_MAXID;

View File

@ -12,7 +12,6 @@ class RoomObstacle : public Obstacle
Room* room = nullptr;
a8::XTimerAttacher xtimer_attacher;
bool is_treasure_box = false;
bool is_terminator_airdrop_box = false;
CreatureWeakPtr master;
int real_object_uniid = 0;
std::shared_ptr<Ability> context_ability;
@ -21,7 +20,6 @@ class RoomObstacle : public Obstacle
virtual ~RoomObstacle() override;
virtual void Initialize() override;
virtual void RecalcSelfCollider() override;
virtual bool IsTerminatorAirDropBox(Room* room) override { return is_terminator_airdrop_box; }
virtual bool DoInteraction(Human* sender) override;
virtual void OnBattleStart(Room* room) override;
void ActiveTimerFunc();