From dc0bf68c6fe6034a803cf9bc32fe4f46aa7ae022 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 21 May 2023 19:01:22 -0400 Subject: [PATCH] Misc fixes --- README.md | 2 +- Source/Framework/Constants/Spells/SpellAuraConst.cs | 1 + Source/Game/DataStorage/CliDB.cs | 2 +- Source/Game/Entities/Player/Player.cs | 8 +++++++- Source/Game/Entities/Player/PlayerTaxi.cs | 4 ++-- Source/Game/Spells/SpellEffects.cs | 1 - 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 05ea65128..44fa4f86e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ CypherCore is an open source server project for World of Warcraft written in C#. -The current support game version is: 10.0.7.49343 +The current support game version is: 10.1.0.49474 ### Prerequisites * .NET 7.0 SDK [Download](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) diff --git a/Source/Framework/Constants/Spells/SpellAuraConst.cs b/Source/Framework/Constants/Spells/SpellAuraConst.cs index eb5bc36c0..ed33d2bfc 100644 --- a/Source/Framework/Constants/Spells/SpellAuraConst.cs +++ b/Source/Framework/Constants/Spells/SpellAuraConst.cs @@ -544,6 +544,7 @@ namespace Framework.Constants Unk534 = 534, Unk535 = 535, IgnoreSpellCreatureTypeRequirements = 536, + Unk537 = 537, Total } diff --git a/Source/Game/DataStorage/CliDB.cs b/Source/Game/DataStorage/CliDB.cs index d0a028d07..05e9fecff 100644 --- a/Source/Game/DataStorage/CliDB.cs +++ b/Source/Game/DataStorage/CliDB.cs @@ -389,7 +389,7 @@ namespace Game.DataStorage foreach (var entry in TaxiPathNodeStorage.Values) TaxiPathNodesByPath[entry.PathID][entry.NodeIndex] = entry; - var taxiMaskSize = ((TaxiNodesStorage.GetNumRows() - 1) / (8 * 64) + 1) * 8; + var taxiMaskSize = ((TaxiNodesStorage.GetNumRows() - 1) / (1 * 64) + 1) * 8; TaxiNodesMask = new byte[taxiMaskSize]; OldContinentsNodesMask = new byte[taxiMaskSize]; HordeTaxiNodesMask = new byte[taxiMaskSize]; diff --git a/Source/Game/Entities/Player/Player.cs b/Source/Game/Entities/Player/Player.cs index b9141f7a8..0518c24df 100644 --- a/Source/Game/Entities/Player/Player.cs +++ b/Source/Game/Entities/Player/Player.cs @@ -3371,7 +3371,13 @@ namespace Game.Entities WorldCfg.RatePowerArcaneCharges, WorldCfg.RatePowerFury, WorldCfg.RatePowerPain, - 0 // todo add config for Essence power + 0, // todo add config for Essence power + 0, + 0, + 0, + 0, + 0, + 0 }; if (RatesForPower[(int)power] != 0) diff --git a/Source/Game/Entities/Player/PlayerTaxi.cs b/Source/Game/Entities/Player/PlayerTaxi.cs index 8300ca267..a624ade8d 100644 --- a/Source/Game/Entities/Player/PlayerTaxi.cs +++ b/Source/Game/Entities/Player/PlayerTaxi.cs @@ -19,7 +19,7 @@ namespace Game.Entities public void InitTaxiNodesForLevel(Race race, Class chrClass, uint level) { - m_taximask = new byte[((CliDB.TaxiNodesStorage.GetNumRows() - 1) / (8 * 64) + 1) * 8]; + m_taximask = new byte[((CliDB.TaxiNodesStorage.GetNumRows() - 1) / (1 * 64) + 1) * 8]; // class specific initial known nodes if (chrClass == Class.Deathknight) @@ -93,7 +93,7 @@ namespace Game.Entities public void LoadTaxiMask(string data) { - m_taximask = new byte[((CliDB.TaxiNodesStorage.GetNumRows() - 1) / (8 * 64) + 1) * 8]; + m_taximask = new byte[((CliDB.TaxiNodesStorage.GetNumRows() - 1) / (1 * 64) + 1) * 8]; var split = new StringArray(data, ' '); diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index e87b317f3..5b3713aee 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -42,7 +42,6 @@ namespace Game.Spells [SpellEffectHandler(SpellEffectName.Attack)] [SpellEffectHandler(SpellEffectName.ThreatAll)] [SpellEffectHandler(SpellEffectName.Effect112)] - [SpellEffectHandler(SpellEffectName.TeleportGraveyard)] [SpellEffectHandler(SpellEffectName.Effect122)] [SpellEffectHandler(SpellEffectName.Effect175)] [SpellEffectHandler(SpellEffectName.Effect178)]