mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 20:19:49 +01:00
Core/Spell: Change auraSlot to uint16
This commit is contained in:
@@ -123,7 +123,7 @@ ByteBuffer& operator<<(ByteBuffer& data, AuraDataInfo const& auraData)
|
||||
|
||||
ByteBuffer& operator<<(ByteBuffer& data, AuraInfo const& aura)
|
||||
{
|
||||
data << aura.Slot;
|
||||
data << uint16(aura.Slot);
|
||||
data << OptionalInit(aura.AuraData);
|
||||
data.FlushBits();
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ namespace WorldPackets
|
||||
|
||||
struct AuraInfo
|
||||
{
|
||||
uint8 Slot = 0;
|
||||
uint16 Slot = 0;
|
||||
Optional<AuraDataInfo> AuraData;
|
||||
};
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ _flags(AFLAG_NONE), _effectsToApply(effMask), _needClientUpdate(false), _effectM
|
||||
ASSERT(GetTarget() && GetBase());
|
||||
|
||||
// Try find slot for aura
|
||||
uint8 slot = 0;
|
||||
uint16 slot = 0;
|
||||
// lookup for free slots in units visibleAuras
|
||||
for (AuraApplication* visibleAura : GetTarget()->GetVisibleAuras())
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ class TC_GAME_API AuraApplication
|
||||
Unit* const _target;
|
||||
Aura* const _base;
|
||||
AuraRemoveMode _removeMode:8; // Store info for know remove aura reason
|
||||
uint8 _slot; // Aura slot on unit
|
||||
uint16 _slot; // Aura slot on unit
|
||||
uint16 _flags; // Aura info flag
|
||||
uint32 _effectsToApply; // Used only at spell hit to determine which effect should be applied
|
||||
bool _needClientUpdate:1;
|
||||
@@ -79,7 +79,7 @@ class TC_GAME_API AuraApplication
|
||||
Unit* GetTarget() const { return _target; }
|
||||
Aura* GetBase() const { return _base; }
|
||||
|
||||
uint8 GetSlot() const { return _slot; }
|
||||
uint16 GetSlot() const { return _slot; }
|
||||
uint16 GetFlags() const { return _flags; }
|
||||
uint32 GetEffectMask() const { return _effectMask; }
|
||||
bool HasEffect(uint8 effect) const { ASSERT(effect < MAX_SPELL_EFFECTS); return (_effectMask & (1 << effect)) != 0; }
|
||||
|
||||
Reference in New Issue
Block a user