mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +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
|
|
@ -2640,4 +2640,23 @@ enum MailResponseResult
|
|||
MAIL_ERR_ITEM_HAS_EXPIRED = 21,
|
||||
};
|
||||
|
||||
// reasons for why pet tame may fail
|
||||
// in fact, these are also used elsewhere
|
||||
enum PetTameFailureReason
|
||||
{
|
||||
PETTAME_INVALIDCREATURE = 0,
|
||||
PETTAME_TOOMANY = 1,
|
||||
PETTAME_CREATUREALREADYOWNED = 2,
|
||||
PETTAME_NOTTAMEABLE = 3,
|
||||
PETTAME_ANOTHERSUMMONACTIVE = 4,
|
||||
PETTAME_UNITSCANTTAME = 5,
|
||||
PETTAME_NOPETAVAILABLE = 6, // not used in taming
|
||||
PETTAME_INTERNALERROR = 7,
|
||||
PETTAME_TOOHIGHLEVEL = 8,
|
||||
PETTAME_DEAD = 9, // not used in taming
|
||||
PETTAME_NOTDEAD = 10, // not used in taming
|
||||
PETTAME_CANTCONTROLEXOTIC = 11, // 3.x
|
||||
PETTAME_UNKNOWNERROR = 12
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue