diff --git a/Source/Framework/Logging/Log.cs b/Source/Framework/Logging/Log.cs index 0d9c13060..613a756c9 100644 --- a/Source/Framework/Logging/Log.cs +++ b/Source/Framework/Logging/Log.cs @@ -263,7 +263,7 @@ public class Log if (level < lowestLogLevel) lowestLogLevel = level; - Logger logger = new Logger(name, level); + Logger logger = new(name, level); int i = 0; var ss = new StringArray(tokens[1], ' '); @@ -348,8 +348,8 @@ public class Log appender.setRealmId(id); } - static Dictionary appenders = new Dictionary(); - static Dictionary loggers = new Dictionary(); + static Dictionary appenders = new(); + static Dictionary loggers = new(); static string m_logsDir; static byte AppenderId; diff --git a/Source/Game/Chat/Commands/QuestCommands.cs b/Source/Game/Chat/Commands/QuestCommands.cs index 7440fc4d5..42f1347ae 100644 --- a/Source/Game/Chat/Commands/QuestCommands.cs +++ b/Source/Game/Chat/Commands/QuestCommands.cs @@ -222,7 +222,7 @@ namespace Game.Chat } else { - handler.SendSysMessage(CypherStrings.CommandQuestNotfound); + handler.SendSysMessage(CypherStrings.CommandQuestNotfound, entry); return false; } } diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 040cbc80b..89029c0a3 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -710,7 +710,7 @@ namespace Game.Spells unitTarget.m_Events.AddEventAtOffset(new DelayedSpellTeleportEvent(unitTarget, targetDest, unitTarget == m_caster ? TeleportToOptions.Spell : 0, m_spellInfo.Id), TimeSpan.FromMilliseconds(effectInfo.MiscValue)); } - + [SpellEffectHandler(SpellEffectName.ApplyAura)] [SpellEffectHandler(SpellEffectName.ApplyAuraOnPet)] void EffectApplyAura() @@ -3169,9 +3169,6 @@ namespace Game.Spells if (unitTarget == null || !unitTarget.IsTypeId(TypeId.Unit)) return; - if (RandomHelper.randChance(50)) // chance unknown, using 50 - return; - uint[] spellPlayer = new uint[5] { 45674, // Bigger! @@ -5659,7 +5656,7 @@ namespace Game.Spells sceneObject.SetCreatedBySpellCast(m_castId); } } - + [SpellEffectHandler(SpellEffectName.PlayScene)] void EffectPlayScene() { diff --git a/Source/Game/Spells/SpellInfo.cs b/Source/Game/Spells/SpellInfo.cs index 4f95ea8ca..beaf90268 100644 --- a/Source/Game/Spells/SpellInfo.cs +++ b/Source/Game/Spells/SpellInfo.cs @@ -3297,6 +3297,7 @@ namespace Game.Spells case 72410: // Rune of Blood, Saurfang, Icecrown Citadel case 71204: // Touch of Insignificance, Lady Deathwhisper, Icecrown Citadel return false; + case 24732: // Bat Costume case 30877: // Tag Murloc case 61716: // Rabbit Costume case 61734: // Noblegarden Bunny diff --git a/Source/Scripts/World/GameObject.cs b/Source/Scripts/World/GameObject.cs index 7d53a64a2..1beee5f5a 100644 --- a/Source/Scripts/World/GameObject.cs +++ b/Source/Scripts/World/GameObject.cs @@ -505,20 +505,6 @@ namespace Scripts.World.GameObjects } } - [Script] - class go_sacred_fire_of_life : GameObjectAI - { - public go_sacred_fire_of_life(GameObject go) : base(go) { } - - public override bool GossipHello(Player player) - { - if (me.GetGoType() == GameObjectTypes.Goober) - player.SummonCreature(CreatureIds.Arikara, -5008.338f, -2118.894f, 83.657f, 0.874f, TempSummonType.TimedDespawnOutOfCombat, 30000); - - return true; - } - } - [Script] class go_shrine_of_the_birds : GameObjectAI {