mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[7468] Convert pet cast check code to use SpellCastResult and finaly fix SPELL_CAST_OK value (255 custom value now)
This commit is contained in:
parent
0e987bf59e
commit
5d6cb5fe80
7 changed files with 20 additions and 20 deletions
|
|
@ -683,8 +683,7 @@ enum SpellEffects
|
|||
|
||||
enum SpellCastResult
|
||||
{
|
||||
SPELL_CAST_OK = 0, //FIXME: used as success result currently
|
||||
SPELL_FAILED_AFFECTING_COMBAT = 0, //FIXME: used as success result currently
|
||||
SPELL_FAILED_AFFECTING_COMBAT = 0,
|
||||
SPELL_FAILED_ALREADY_AT_FULL_HEALTH = 1,
|
||||
SPELL_FAILED_ALREADY_AT_FULL_MANA = 2,
|
||||
SPELL_FAILED_ALREADY_AT_FULL_POWER = 3,
|
||||
|
|
@ -865,7 +864,9 @@ enum SpellCastResult
|
|||
SPELL_FAILED_ITEM_AT_MAX_CHARGES = 178,
|
||||
SPELL_FAILED_NOT_IN_BARBERSHOP = 179,
|
||||
SPELL_FAILED_FISHING_TOO_LOW = 180,
|
||||
SPELL_FAILED_UNKNOWN = 181
|
||||
SPELL_FAILED_UNKNOWN = 181,
|
||||
|
||||
SPELL_CAST_OK = 255 //custom value, don't must be send to client
|
||||
};
|
||||
|
||||
// Spell aura states
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue