Skip to content

- Fixed codestyle c++ action - #40

Closed
kadeshar wants to merge 18 commits into
masterfrom
codestyle-fix
Closed

kadeshar wants to merge 18 commits into
masterfrom
codestyle-fix

Conversation

@kadeshar

@kadeshar kadeshar commented Nov 1, 2025

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings November 1, 2025 22:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings November 2, 2025 13:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 52 out of 58 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 2, 2025 13:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 106 out of 112 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kadeshar
kadeshar requested a review from Copilot November 2, 2025 14:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 126 out of 140 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/GuildTaskMgr.cpp
{
ObjectGuid::LowType owner = player->GetGUID().GetCounter();
if (victim->GetTypeId() != TYPEID_UNIT)
if (victim->IsCreature())

Copilot AI Nov 2, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic error: the function returns early if the victim IS a creature, but then tries to cast it to Creature*. This should be if (!victim->IsCreature()) to check if the victim is NOT a creature.

Suggested change
if (victim->IsCreature())
if (!victim->IsCreature())

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings November 4, 2025 16:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 132 out of 145 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

bot->AddSpellCooldown(spellId, 0, 3 * 60 * 1000);
return true;
} No newline at end of file
}

Copilot AI Nov 4, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing newline at end of file. The file should end with a newline character according to POSIX standards and most C++ style guides.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings November 4, 2025 17:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 133 out of 147 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/GuildTaskMgr.cpp
{
ObjectGuid::LowType owner = player->GetGUID().GetCounter();
if (victim->GetTypeId() != TYPEID_UNIT)
if (victim->IsCreature())

Copilot AI Nov 4, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic appears to be inverted. The original code checked if (victim->GetTypeId() != TYPEID_UNIT) which returned early if the victim was NOT a unit. The new code with IsCreature() returns early if the victim IS a creature, which is the opposite behavior. This should be if (!victim->IsCreature()).

Suggested change
if (victim->IsCreature())
if (!victim->IsCreature())

Copilot uses AI. Check for mistakes.
WorldObject const* i_obj;
float i_range;
};
#include "NearestGameObjects.h"

Copilot AI Nov 4, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The entire AnyGameObjectInObjectRangeCheck class definition (lines 15-31 in the original) has been removed and replaced with an include of 'NearestGameObjects.h'. Ensure that this header file exists and contains the required AnyGameObjectInObjectRangeCheck class definition, as this file likely depends on it.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings November 4, 2025 17:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 134 out of 148 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

#include "Event.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "NearestGameObjects.h"

Copilot AI Nov 4, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition of this include suggests a new header file 'NearestGameObjects.h' was created to contain the AnyGameObjectInObjectRangeCheck class that was removed from this file (lines 58-76 deleted) and RevealGatheringItemAction.cpp. However, this header file is not present in the diff. Please ensure NearestGameObjects.h exists and contains the relocated class definition.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings November 5, 2025 15:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 133 out of 149 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

#include "Event.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "NearestGameObjects.h"

Copilot AI Nov 5, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new header file 'NearestGameObjects.h' is included, presumably to provide the AnyGameObjectInObjectRangeCheck class that was previously defined inline. Ensure this header file exists and contains the necessary class definition.

Copilot uses AI. Check for mistakes.
WorldObject const* i_obj;
float i_range;
};
#include "NearestGameObjects.h"

Copilot AI Nov 5, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new header file 'NearestGameObjects.h' is included to replace the inline class definition. Ensure this header file exists and contains the AnyGameObjectInObjectRangeCheck class definition that was removed from this file.

Copilot uses AI. Check for mistakes.
@kadeshar kadeshar closed this Nov 6, 2025
@kadeshar
kadeshar deleted the codestyle-fix branch March 22, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants