Repository navigation
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| { | ||
| ObjectGuid::LowType owner = player->GetGUID().GetCounter(); | ||
| if (victim->GetTypeId() != TYPEID_UNIT) | ||
| if (victim->IsCreature()) |
There was a problem hiding this comment.
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.
| if (victim->IsCreature()) | |
| if (!victim->IsCreature()) |
There was a problem hiding this comment.
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 | ||
| } |
There was a problem hiding this comment.
Missing newline at end of file. The file should end with a newline character according to POSIX standards and most C++ style guides.
There was a problem hiding this comment.
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.
| { | ||
| ObjectGuid::LowType owner = player->GetGUID().GetCounter(); | ||
| if (victim->GetTypeId() != TYPEID_UNIT) | ||
| if (victim->IsCreature()) |
There was a problem hiding this comment.
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()).
| if (victim->IsCreature()) | |
| if (!victim->IsCreature()) |
| WorldObject const* i_obj; | ||
| float i_range; | ||
| }; | ||
| #include "NearestGameObjects.h" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
| WorldObject const* i_obj; | ||
| float i_range; | ||
| }; | ||
| #include "NearestGameObjects.h" |
There was a problem hiding this comment.
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.
No description provided.