This commit is contained in:
aozhiwei 2021-05-11 10:23:41 +08:00
parent c4ec0b0a4e
commit 646dddc589
3 changed files with 10 additions and 2 deletions

View File

@ -1654,7 +1654,8 @@ void Creature::RemoveSurplusHero(int buff_id, int id, int num)
}
}
while (matched_heros.size() >= num) {
break;
matched_heros[0]->DetachFromMaster();
matched_heros.erase(matched_heros.begin());
}
}
}
@ -1670,7 +1671,8 @@ void Creature::RemoveSurplusObstacle(int buff_id, int id, int num)
}
}
while (matched_things.size() >= num) {
break;
matched_things[0]->DetachFromMaster();
matched_things.erase(matched_things.begin());
}
}
}

View File

@ -434,3 +434,8 @@ void RoomObstacle::ActivePosionGas()
&xtimer_attacher.timer_list_
);
}
void RoomObstacle::DetachFromMaster()
{
}

View File

@ -21,6 +21,7 @@ class RoomObstacle : public Obstacle
void ActiveTimerFunc();
void UpdateTimerFunc();
void Active();
void DetachFromMaster();
private:
void Explosion();