Skip to content

Commit

Permalink
NPCBots: Fix build 1
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed Jan 31, 2024
1 parent 5cc7d34 commit a8c3210
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/server/game/Spells/SpellInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2883,7 +2883,14 @@ void SpellInfo::_LoadImmunityInfo()
|| !immuneInfo.AuraTypeImmune.empty()
|| !immuneInfo.SpellEffectImmune.empty())
{
//npcbot
/*
//end npcbot
effect._immunityInfo = std::move(workBuffer);
//npcbot
*/
effect._immunityInfo = workBuffer.release();
//end npcbot
workBuffer = std::make_unique<SpellEffectInfo::ImmunityInfo>();
}

Expand Down
21 changes: 21 additions & 0 deletions src/server/game/Spells/SpellInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,23 @@ class TC_GAME_API SpellEffectInfo

SpellEffectInfo();
explicit SpellEffectInfo(SpellEntry const* spellEntry, SpellInfo const* spellInfo, uint8 effIndex);
//npcbot
/*
//end npcbot
SpellEffectInfo(SpellEffectInfo const&) = delete;
//npcbot
*/
SpellEffectInfo(SpellEffectInfo const&) = default;
//end npcbot
SpellEffectInfo(SpellEffectInfo&&) noexcept;
//npcbot
/*
//end npcbot
SpellEffectInfo& operator=(SpellEffectInfo const&) = delete;
//npcbot
*/
SpellEffectInfo& operator=(SpellEffectInfo const&) = default;
//end npcbot
SpellEffectInfo& operator=(SpellEffectInfo&&) noexcept;
~SpellEffectInfo();

Expand Down Expand Up @@ -277,7 +291,14 @@ class TC_GAME_API SpellEffectInfo
};
static std::array<StaticData, TOTAL_SPELL_EFFECTS> _data;

//npcbot
/*
//end npcbot
std::unique_ptr<ImmunityInfo> _immunityInfo;
//npcbot
*/
std::shared_ptr<ImmunityInfo> _immunityInfo;
//end npcbot
};

struct TC_GAME_API SpellDiminishInfo
Expand Down

0 comments on commit a8c3210

Please sign in to comment.