Core/PacketIO: 9.1.5 updatefields and SMSG_UPDATE_OBJECT structure
Port From (https://github.com/TrinityCore/TrinityCore/commit/5c8a058120dcf2c3ff8592886cb842ca889e0411)
This commit is contained in:
@@ -1943,25 +1943,6 @@ namespace Game.Spells
|
||||
target.RemoveTrackCreatureFlag(1u << (GetMiscValue() - 1));
|
||||
}
|
||||
|
||||
[AuraEffectHandler(AuraType.TrackResources)]
|
||||
void HandleAuraTrackResources(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply)
|
||||
{
|
||||
if (!mode.HasAnyFlag(AuraEffectHandleModes.SendForClientMask))
|
||||
return;
|
||||
|
||||
Player target = aurApp.GetTarget().ToPlayer();
|
||||
if (target == null)
|
||||
return;
|
||||
|
||||
uint bitIndex = (uint)GetMiscValue() - 1;
|
||||
uint index = bitIndex / 32;
|
||||
uint flag = 1u << ((int)bitIndex % 32);
|
||||
if (apply)
|
||||
target.AddTrackResourceFlag(index, flag);
|
||||
else
|
||||
target.RemoveTrackResourceFlag(index, flag);
|
||||
}
|
||||
|
||||
[AuraEffectHandler(AuraType.TrackStealthed)]
|
||||
void HandleAuraTrackStealthed(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user