Skip to content

Commit aae2bea

Browse files
authored
Core/Pets: Allow pet commands while hunter is under SPELL_AURA_MOD_PACIFY aura
1 parent b610048 commit aae2bea

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/server/game/Handlers/PetHandler.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,6 @@ void WorldSession::HandlePetActionHelper(Unit* pet, ObjectGuid guid1, uint32 spe
174174
break;
175175
case COMMAND_ATTACK: // spellid = 1792 - ATTACK
176176
{
177-
// Can't attack if owner is pacified
178-
if (_player->HasAuraType(SPELL_AURA_MOD_PACIFY))
179-
{
180-
// pet->SendPetCastFail(spellid, SPELL_FAILED_PACIFIED);
181-
/// @todo Send proper error message to client
182-
return;
183-
}
184-
185177
// only place where pet can be player
186178
Unit* TargetUnit = ObjectAccessor::GetUnit(*_player, guid2);
187179
if (!TargetUnit)

0 commit comments

Comments
 (0)