fix(Core/Events): Implement Spirit of Competition event (#16963)
* fix(Core/Events): Implement Spirit of Competition event Co-Authored-By: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com> * Update Battleground.cpp * Update rev_1691529514989936100.sql * more stuff * bye bye magic numbers * fix dberrors * Update Battleground.cpp * Update Battleground.cpp * Update Battleground.cpp Co-Authored-By: Anton Popovichenko <walkline.ua@gmail.com> * Update Battleground.cpp * Update Battleground.cpp * Update Battleground.cpp * Update Battleground.cpp * Update rev_1691529514989936100.sql * commoneers * Update src/server/game/Battlegrounds/Battleground.cpp Co-authored-by: Anton Popovichenko <walkline.ua@gmail.com> * ci * Update rev_1691529514989936100.sql * unnecessary whitespace * Update src/server/game/Battlegrounds/Battleground.cpp * Update src/server/game/Battlegrounds/Battleground.cpp * Update src/server/game/Battlegrounds/Battleground.cpp * Update Battleground.cpp --------- Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com> Co-authored-by: Anton Popovichenko <walkline.ua@gmail.com>
This commit is contained in:
@@ -237,6 +237,15 @@ enum BattlegroundStartingEventsIds
|
||||
BG_STARTING_EVENT_FOURTH = 3
|
||||
};
|
||||
|
||||
enum SpiritOfCompetitionEvent
|
||||
{
|
||||
EVENT_SPIRIT_OF_COMPETITION = 46,
|
||||
QUEST_FLAG_PARTICIPANT = 12187,
|
||||
QUEST_FLAG_WINNER = 12186,
|
||||
SPELL_SPIRIT_OF_COMPETITION_PARTICIPANT = 48163,
|
||||
SPELL_SPIRIT_OF_COMPETITION_WINNER = 48164,
|
||||
};
|
||||
|
||||
constexpr auto BG_STARTING_EVENT_COUNT = 4;
|
||||
|
||||
class ArenaLogEntryData
|
||||
@@ -337,6 +346,9 @@ public:
|
||||
[[nodiscard]] uint32 GetScriptId() const { return ScriptId; }
|
||||
[[nodiscard]] uint32 GetBonusHonorFromKill(uint32 kills) const;
|
||||
|
||||
// Spirit of Competition event
|
||||
bool SpiritofCompetitionEvent(PvPTeamId winnerTeamId);
|
||||
|
||||
bool IsRandom() { return m_IsRandom; }
|
||||
|
||||
// Set methods:
|
||||
|
||||
Reference in New Issue
Block a user