mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-19 16:39:57 +01:00
REPO: code-style clean-up
* Fixed pGuild->guild * Fixed pGroup->group * Fixed pOwner->owner
This commit is contained in:
@@ -53,9 +53,9 @@ public:
|
||||
if (pInstance->GetData(TYPE_BARON_RUN) != NOT_STARTED)
|
||||
return false;
|
||||
|
||||
if (Group* pGroup = player->GetGroup())
|
||||
if (Group* group = player->GetGroup())
|
||||
{
|
||||
for (GroupReference* itr = pGroup->GetFirstMember(); itr != NULL; itr = itr->next())
|
||||
for (GroupReference* itr = group->GetFirstMember(); itr != NULL; itr = itr->next())
|
||||
{
|
||||
Player* pGroupie = itr->getSource();
|
||||
if (!pGroupie)
|
||||
|
||||
@@ -95,9 +95,9 @@ public:
|
||||
if (done_by->GetTypeId() == TYPEID_PLAYER)
|
||||
if (me->HealthBelowPctDamaged(30, damage))
|
||||
{
|
||||
if (Group* pGroup = CAST_PLR(done_by)->GetGroup())
|
||||
if (Group* group = CAST_PLR(done_by)->GetGroup())
|
||||
{
|
||||
for (GroupReference* itr = pGroup->GetFirstMember(); itr != NULL; itr = itr->next())
|
||||
for (GroupReference* itr = group->GetFirstMember(); itr != NULL; itr = itr->next())
|
||||
{
|
||||
Player* pGroupie = itr->getSource();
|
||||
if (pGroupie &&
|
||||
|
||||
Reference in New Issue
Block a user