Updates Combat Packets & Moves Tracking to Content (#298)

- [X] Changes outgoing combat packets
- [X] Moves quest arrow to PlayerMobile and moves quest arrow packets to content.

Bumps release version
This commit is contained in:
Kamron Batman 2020-11-01 21:33:01 -08:00 • committed by GitHub
parent 55935d30b4
commit 6f5cb00cdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 373 additions and 319 deletions

View file

@ -744,10 +744,7 @@ namespace Server.Items
{
attacker.DisruptiveAction();
if (attacker.NetState != null)
{
attacker.Send(new Swing(attacker.Serial, defender.Serial));
}
attacker.NetState?.SendSwing(attacker.Serial, defender.Serial);
if (attacker is BaseCreature bc)
{

View file

@ -60,8 +60,7 @@ namespace Server.Items
// WeaponAbility a = WeaponAbility.GetCurrentAbility( attacker );
// Make sure we've been standing still for .25/.5/1 second depending on Era
if (Core.TickCount - attacker.LastMoveTime >= (Core.SE ? 250 :
Core.AOS ? 500 : 1000) ||
if (Core.TickCount - attacker.LastMoveTime >= (Core.SE ? 250 : Core.AOS ? 500 : 1000) ||
Core.AOS && WeaponAbility.GetCurrentAbility(attacker) is MovingShot)
{
var canSwing = true;
@ -84,7 +83,7 @@ namespace Server.Items
if (canSwing && attacker.HarmfulCheck(defender))
{
attacker.DisruptiveAction();
attacker.Send(new Swing(attacker.Serial, defender.Serial));
attacker.NetState?.SendSwing(attacker.Serial, defender.Serial);
if (OnFired(attacker, defender))
{