1
This commit is contained in:
parent
9ac5f89cfe
commit
6f05e7b3ee
@ -2442,6 +2442,7 @@ void Creature::SummonObstacle(Buff* buff, int id, const a8::Vec2& target_pos)
|
||||
RoomObstacle* obstacle = room->CreateObstacle(id, pos.x, pos.y);
|
||||
if (obstacle) {
|
||||
obstacle->buff_meta = buff->meta;
|
||||
obstacle->skill_meta = buff->skill_meta;
|
||||
obstacle->master.Attach(this);
|
||||
obstacle->SetTeamId(room, team_id);
|
||||
obstacle->SetMasterId(room, GetUniId());
|
||||
|
@ -8,6 +8,7 @@
|
||||
namespace MetaData
|
||||
{
|
||||
struct Buff;
|
||||
struct Skill;
|
||||
}
|
||||
|
||||
class Ability;
|
||||
@ -22,6 +23,7 @@ class RoomObstacle : public Obstacle
|
||||
std::shared_ptr<Ability> context_ability;
|
||||
bool sweep_lock = false;
|
||||
MetaData::Buff* buff_meta = nullptr;
|
||||
MetaData::Skill* skill_meta = nullptr;
|
||||
long long born_frameno = 0;
|
||||
|
||||
virtual ~RoomObstacle() override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user