Misc fixes

This commit is contained in:
hondacrx
2022-01-06 00:19:12 -05:00
parent e89a36a232
commit 32375df62e
6 changed files with 34 additions and 12 deletions
@@ -68,8 +68,9 @@ namespace Framework.Constants
Update = 0x1, // Update in progress
StaticInitializationPending = 0x2, // Static movement (MOTION_SLOT_DEFAULT) hasn't been initialized
InitializationPending = 0x4, // MotionMaster is stalled until signaled
Initializing = 0x8, // MotionMaster is initializing
Delayed = StaticInitializationPending | InitializationPending
Delayed = Update | InitializationPending
}
public enum MotionMasterDelayedActionType
@@ -69,7 +69,7 @@ namespace Framework.Constants
TrackResources = 45,
Unk46 = 46, // Ignore All Gear Test Spells
ModParryPercent = 47,
Unk48 = 48, // One Periodic Spell
PeriodicTriggerSpellFromClient = 48, // One Periodic Spell
ModDodgePercent = 49,
ModCriticalHealingAmount = 50,
ModBlockPercent = 51,
@@ -414,7 +414,7 @@ namespace Game.Entities
public ushort aiAnimKit;
public ushort movementAnimKit;
public ushort meleeAnimKit;
public uint[] auras;
public List<uint> auras = new();
public VisibilityDistanceType visibilityDistanceType;
}
+1 -1
View File
@@ -71,7 +71,7 @@ namespace Game.Entities
if (totemDisplayId != 0)
SetDisplayId(totemDisplayId);
else
Log.outError(LogFilter.Misc, $"Totem with entry {GetEntry()}, does not have a specialized model for spell {m_unitData.CreatedBySpell} and race {owner.GetRace()}. Set to default.");
Log.outDebug(LogFilter.Misc, $"Totem with entry {GetEntry()}, does not have a specialized model for spell {m_unitData.CreatedBySpell} and race {owner.GetRace()}. Set to default.");
}
base.InitStats(duration);
+26 -5
View File
@@ -1739,8 +1739,29 @@ namespace Scripts.Spells.Quest
}
}
// 48682 - Escape from Silverbrook - Periodic Dummy
[Script]
class spell_q11896_weakness_to_lightning_46444 : SpellScript
{
void HandleScript(uint effIndex)
{
Unit target = GetHitUnit();
if (target != null)
{
Unit owner = target.GetOwner();
if (owner != null)
{
target.CastSpell(owner, (uint)GetEffectValue(), true);
}
}
}
public override void Register()
{
OnEffectHitTarget.Add(new EffectHandler(HandleScript, 0, SpellEffectName.ScriptEffect));
}
}
[Script] // 48682 - Escape from Silverbrook - Periodic Dummy
class spell_q12308_escape_from_silverbrook : SpellScript
{
public override bool Validate(SpellInfo spellInfo)
@@ -1759,8 +1780,8 @@ namespace Scripts.Spells.Quest
}
}
// 48681 - Summon Silverbrook Worgen
[Script]
[Script] // 48681 - Summon Silverbrook Worgen
class spell_q12308_escape_from_silverbrook_summon_worgen : SpellScript
{
void ModDest(ref SpellDestination dest)
@@ -1778,8 +1799,8 @@ namespace Scripts.Spells.Quest
}
}
// 51858 - Siphon of Acherus
[Script]
[Script] // 51858 - Siphon of Acherus
class spell_q12641_death_comes_from_on_high : SpellScript
{
public override bool Validate(SpellInfo spellInfo)
+3 -3
View File
@@ -448,10 +448,10 @@ LogDB.Opt.ClearTime = 1209600
#
# MaxCoreStuckTime (NYI)
# Description: Time (in seconds) before the server is forced to crash if it is frozen.
# Default: 0 - (Disabled)
# 10+ - (Enabled, Recommended 10+)
# Default: 60 - (Enabled, Recommended 10+)
# 0 - (Disabled)
MaxCoreStuckTime = 0
MaxCoreStuckTime = 60
#
# AddonChannel