mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
feat(CI/Codestyle): check for curly brackets before/after if/else statements (#20977)
* feat(CI/Codestyle): check for braces after if/else statements * right need to edit a cpp file to trigger cpp check * Revert "right need to edit a cpp file to trigger cpp check" This reverts commit 2e34d8c52f35216549107a3476e79e79ea2ae077. * fix codestyle in cpp * Update oculus.cpp * Update codestyle.py * Update codestyle.py * Update codestyle.py * Update codestyle.py
This commit is contained in:
@@ -93,7 +93,8 @@ public:
|
||||
resetPosition = true;
|
||||
moved = true;
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
moved = false;
|
||||
resetPosition = false;
|
||||
}
|
||||
|
||||
@@ -147,7 +147,8 @@ void OPvPCapturePointNA::SpawnNPCsForTeam(HalaaNPCS teamNPC)
|
||||
{
|
||||
ObjectGuid::LowType spawnId = teamNPC[i];
|
||||
const CreatureData* data = sObjectMgr->GetCreatureData(spawnId);
|
||||
if (data) {
|
||||
if (data)
|
||||
{
|
||||
UpdateCreatureHalaa(spawnId, _pvp->GetMap(), data->posX, data->posY);
|
||||
_creatures[i] = spawnId;
|
||||
_creatureTypes[_creatures[i]] = i;
|
||||
@@ -650,12 +651,14 @@ bool OPvPCapturePointNA::Update(uint32 diff)
|
||||
}
|
||||
else m_GuardCheckTimer -= diff;
|
||||
|
||||
if (m_capturable) {
|
||||
if (m_capturable)
|
||||
{
|
||||
if (m_RespawnTimer < diff)
|
||||
{
|
||||
// if the guards have been killed, then the challenger has one hour to take over halaa.
|
||||
// in case they fail to do it, the guards are respawned, and they have to start again.
|
||||
if (GetControllingFaction() == TEAM_ALLIANCE) {
|
||||
if (GetControllingFaction() == TEAM_ALLIANCE)
|
||||
{
|
||||
_state = OBJECTIVESTATE_ALLIANCE;
|
||||
_value = _maxValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user