diff --git a/server/gameserver/creature.cc b/server/gameserver/creature.cc index adecbfe..cc35e24 100644 --- a/server/gameserver/creature.cc +++ b/server/gameserver/creature.cc @@ -1396,6 +1396,7 @@ RoomObstacle* Creature::SummonObstacle(int id, const a8::Vec2& pos) obstacle->SetTeamId(room, team_id); obstacle->SetMasterId(room, GetEntityUniId()); obstacle->Active(); + slave_things_.push_back(obstacle); } else { abort(); } @@ -1547,6 +1548,7 @@ void Creature::SummonHero(const a8::Vec2& pos, dir, team_id ); + slave_heros_.push_back(hero); break; } } @@ -1568,3 +1570,13 @@ void Creature::SlaveOnRemove(Entity* slave) { } + +void Creature::RemoveMoreHero(int buff_id, int id, int num) +{ + +} + +void Creature::RemoveMoreObstacle(int buff_id, int id, int num) +{ + +} diff --git a/server/gameserver/creature.h b/server/gameserver/creature.h index 2acb29e..1b5e8d7 100644 --- a/server/gameserver/creature.h +++ b/server/gameserver/creature.h @@ -164,6 +164,8 @@ private: Skill* GetPassiveSkill(int skill_id); void RemovePassiveSkill(int skill_id); + void RemoveMoreHero(int buff_id, int id, int num); + void RemoveMoreObstacle(int buff_id, int id, int num); protected: RaceType_e race_ = kHumanRace;