mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8671] Correctly send SMSG_PET_TAME_FAILED with appropriate value when taming fail instead of spell fail.
I also removed conditions from Spell::EffectTameCreature which are checked in Spell::CheckCast. Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
906b2784a2
commit
0e1854a936
7 changed files with 80 additions and 37 deletions
|
|
@ -12572,6 +12572,13 @@ bool Player::CanRewardQuest( Quest const *pQuest, uint32 reward, bool msg )
|
|||
return true;
|
||||
}
|
||||
|
||||
void Player::SendPetTameFailure(PetTameFailureReason reason)
|
||||
{
|
||||
WorldPacket data(SMSG_PET_TAME_FAILURE, 1);
|
||||
data << uint8(reason);
|
||||
GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
void Player::AddQuest( Quest const *pQuest, Object *questGiver )
|
||||
{
|
||||
uint16 log_slot = FindQuestSlot( 0 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue