Core/Auras: Implemented SPELL_AURA_MOD_CHARGE_RECOVERY_RATE, SPELL_AURA_MOD_CHARGE_RECOVERY_RATE_BY_TYPE_MASK and SPELL_AURA_MOD_CHARGE_RECOVERY_BY_TYPE_MASK

Port From (https://github.com/TrinityCore/TrinityCore/commit/fa75f635669df6f0aab4abef074f9e8da4b5bf06)
This commit is contained in:
Hondacrx
2025-06-16 17:36:41 -04:00
parent e78a52886c
commit 13554e08ab
5 changed files with 80 additions and 4 deletions
@@ -527,6 +527,25 @@ namespace Game.Networking.Packets
}
}
class UpdateChargeCategoryCooldown : ServerPacket
{
public uint Category;
public float ModChange = 1.0f;
public float ModRate = 1.0f;
public bool Snapshot;
public UpdateChargeCategoryCooldown() : base(ServerOpcodes.UpdateChargeCategoryCooldown) { }
public override void Write()
{
_worldPacket.WriteUInt32(Category);
_worldPacket.WriteFloat(ModChange);
_worldPacket.WriteFloat(ModRate);
_worldPacket.WriteBit(Snapshot);
_worldPacket.FlushBits();
}
}
public class SpellCooldownPkt : ServerPacket
{
public SpellCooldownPkt() : base(ServerOpcodes.SpellCooldown, ConnectionType.Instance) { }