diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 8 | ||||
-rw-r--r-- | src/game/Player.h | 3 | ||||
-rw-r--r-- | src/game/Spell.h | 13 |
3 files changed, 9 insertions, 15 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 02556d4f199..a2ea7dc81a2 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -18796,10 +18796,16 @@ void Player::SendInstanceResetWarning(uint32 mapid, uint32 time) type = RAID_INSTANCE_WARNING_MIN; else type = RAID_INSTANCE_WARNING_MIN_SOON; - WorldPacket data(SMSG_RAID_INSTANCE_MESSAGE, 4+4+4); + WorldPacket data(SMSG_RAID_INSTANCE_MESSAGE, 4+4+4+4); data << uint32(type); data << uint32(mapid); + data << uint32(0); // may be difficulty data << uint32(time); + if(type == RAID_INSTANCE_WELCOME) + { + data << uint8(0); + data << uint8(0); + } GetSession()->SendPacket(&data); } diff --git a/src/game/Player.h b/src/game/Player.h index 0ca82c7116b..cd14d37f34f 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -685,7 +685,8 @@ enum InstanceResetWarningType RAID_INSTANCE_WARNING_HOURS = 1, // WARNING! %s is scheduled to reset in %d hour(s). RAID_INSTANCE_WARNING_MIN = 2, // WARNING! %s is scheduled to reset in %d minute(s)! RAID_INSTANCE_WARNING_MIN_SOON = 3, // WARNING! %s is scheduled to reset in %d minute(s). Please exit the zone or you will be returned to your bind location! - RAID_INSTANCE_WELCOME = 4 // Welcome to %s. This raid instance is scheduled to reset in %s. + RAID_INSTANCE_WELCOME = 4, // Welcome to %s. This raid instance is scheduled to reset in %s. + RAID_INSTANCE_EXPIRED = 5 }; // flags that use in movement check for example at spell casting diff --git a/src/game/Spell.h b/src/game/Spell.h index 13a33613fa6..5309d881990 100644 --- a/src/game/Spell.h +++ b/src/game/Spell.h @@ -31,19 +31,6 @@ class Aura; enum SpellCastTargetFlags { - /*TARGET_FLAG_NONE = 0x0000, - TARGET_FLAG_SWIMMER = 0x0002, - TARGET_FLAG_ITEM = 0x0010, - TARGET_FLAG_SOURCE_AREA = 0x0020, - TARGET_FLAG_DEST_AREA = 0x0040, - TARGET_FLAG_UNKNOWN = 0x0080, - TARGET_FLAG_SELF = 0x0100, - TARGET_FLAG_PVP_CORPSE = 0x0200, - TARGET_FLAG_MASS_SPIRIT_HEAL = 0x0400, - TARGET_FLAG_BEAST_CORPSE = 0x0402, - TARGET_FLAG_OBJECT = 0x4000, - TARGET_FLAG_RESURRECTABLE = 0x8000*/ - TARGET_FLAG_SELF = 0x00000000, TARGET_FLAG_UNUSED1 = 0x00000001, // not used in any spells as of 3.0.3 (can be set dynamically) TARGET_FLAG_UNIT = 0x00000002, // pguid |