Misc fixes

This commit is contained in:
hondacrx
2021-11-15 22:40:38 -05:00
parent a01138b19a
commit 51c292c349
5 changed files with 7 additions and 23 deletions
+3 -3
View File
@@ -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<byte, Appender> appenders = new Dictionary<byte, Appender>();
static Dictionary<LogFilter, Logger> loggers = new Dictionary<LogFilter, Logger>();
static Dictionary<byte, Appender> appenders = new();
static Dictionary<LogFilter, Logger> loggers = new();
static string m_logsDir;
static byte AppenderId;
+1 -1
View File
@@ -222,7 +222,7 @@ namespace Game.Chat
}
else
{
handler.SendSysMessage(CypherStrings.CommandQuestNotfound);
handler.SendSysMessage(CypherStrings.CommandQuestNotfound, entry);
return false;
}
}
+2 -5
View File
@@ -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()
{
+1
View File
@@ -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
-14
View File
@@ -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
{