Core/Auras: Implemented SPELL_AURA_MOD_RECOVERY_RATE and SPELL_AURA_MOD_RECOVERY_RATE_BY_SPELL_LABEL
Port From (https://github.com/TrinityCore/TrinityCore/commit/0c198938005bb22f20a0d150a6505324a2d941de)
This commit is contained in:
@@ -501,16 +501,32 @@ namespace Game.Networking.Packets
|
||||
_worldPacket.WriteUInt32(SpellID);
|
||||
_worldPacket.WriteInt32(DeltaTime);
|
||||
_worldPacket.WriteBit(IsPet);
|
||||
_worldPacket.WriteBit(WithoutCategoryCooldown);
|
||||
_worldPacket.WriteBit(SkipCategory);
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool IsPet;
|
||||
public bool WithoutCategoryCooldown;
|
||||
public bool SkipCategory;
|
||||
public int DeltaTime;
|
||||
public uint SpellID;
|
||||
}
|
||||
|
||||
class UpdateCooldown : ServerPacket
|
||||
{
|
||||
public uint SpellID;
|
||||
public float ModChange = 1.0f;
|
||||
public float ModRate = 1.0f;
|
||||
|
||||
public UpdateCooldown() : base(ServerOpcodes.UpdateCooldown, ConnectionType.Instance) { }
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteUInt32(SpellID);
|
||||
_worldPacket.WriteFloat(ModChange);
|
||||
_worldPacket.WriteFloat(ModRate);
|
||||
}
|
||||
}
|
||||
|
||||
public class SpellCooldownPkt : ServerPacket
|
||||
{
|
||||
public SpellCooldownPkt() : base(ServerOpcodes.SpellCooldown, ConnectionType.Instance) { }
|
||||
|
||||
Reference in New Issue
Block a user