Fixes server loading.
This commit is contained in:
@@ -3706,6 +3706,13 @@ namespace Game.Achievements
|
|||||||
_criteriasByAsset[i] = new MultiMap<uint, Criteria>();
|
_criteriasByAsset[i] = new MultiMap<uint, Criteria>();
|
||||||
_scenarioCriteriasByTypeAndScenarioId[i] = new MultiMap<uint, Criteria>();
|
_scenarioCriteriasByTypeAndScenarioId[i] = new MultiMap<uint, Criteria>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (var i = 0; i < (int)CriteriaStartEvent.Max; ++i)
|
||||||
|
_criteriasByStartEvent[i] = new();
|
||||||
|
|
||||||
|
for (var i = 0; i < (int)CriteriaFailEvent.Max; ++i)
|
||||||
|
_criteriasByFailEvent[i] = new();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void LoadCriteriaModifiersTree()
|
public void LoadCriteriaModifiersTree()
|
||||||
|
|||||||
@@ -2071,7 +2071,7 @@ namespace Game
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (creatureSummonedDataStorage.ContainsKey(creatureId))
|
if (!creatureSummonedDataStorage.ContainsKey(creatureId))
|
||||||
creatureSummonedDataStorage[creatureId] = new();
|
creatureSummonedDataStorage[creatureId] = new();
|
||||||
|
|
||||||
CreatureSummonedData summonedData = creatureSummonedDataStorage[creatureId];
|
CreatureSummonedData summonedData = creatureSummonedDataStorage[creatureId];
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ namespace Scripts.Spells.Generic
|
|||||||
|
|
||||||
public override bool Validate(SpellInfo spellInfo)
|
public override bool Validate(SpellInfo spellInfo)
|
||||||
{
|
{
|
||||||
if (!ValidateSpellEffect((spellInfo.Id, 0)) || spellInfo.GetEffect(0).IsAura(AuraType.ModPowerRegen))
|
if (!ValidateSpellEffect((spellInfo.Id, 0)) || !spellInfo.GetEffect(0).IsAura(AuraType.ModPowerRegen))
|
||||||
{
|
{
|
||||||
Log.outError(LogFilter.Spells, $"Aura {GetId()} structure has been changed - first aura is no longer AuraType.ModPowerRegen");
|
Log.outError(LogFilter.Spells, $"Aura {GetId()} structure has been changed - first aura is no longer AuraType.ModPowerRegen");
|
||||||
return false;
|
return false;
|
||||||
@@ -1207,7 +1207,7 @@ namespace Scripts.Spells.Generic
|
|||||||
|
|
||||||
public override void Register()
|
public override void Register()
|
||||||
{
|
{
|
||||||
SpellInfo spell = SpellMgr.GetSpellInfo(m_scriptSpellId, Difficulty.None);
|
/*SpellInfo spell = SpellMgr.GetSpellInfo(m_scriptSpellId, Difficulty.None);
|
||||||
|
|
||||||
// 6.x effects Removed
|
// 6.x effects Removed
|
||||||
|
|
||||||
@@ -1227,7 +1227,7 @@ namespace Scripts.Spells.Generic
|
|||||||
{
|
{
|
||||||
AfterEffectApply.Add(new(RefreshVisualShields, 1, AuraType.Dummy, AuraEffectHandleModes.RealOrReapplyMask));
|
AfterEffectApply.Add(new(RefreshVisualShields, 1, AuraType.Dummy, AuraEffectHandleModes.RealOrReapplyMask));
|
||||||
OnEffectRemove.Add(new(RemoveVisualShields, 1, AuraType.Dummy, AuraEffectHandleModes.ChangeAmountMask));
|
OnEffectRemove.Add(new(RemoveVisualShields, 1, AuraType.Dummy, AuraEffectHandleModes.ChangeAmountMask));
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ namespace Scripts.World.Achievements
|
|||||||
public const uint SayTaerarSummonShades = 1;
|
public const uint SayTaerarSummonShades = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Script]
|
|
||||||
class emerald_dragon : WorldBossAI
|
class emerald_dragon : WorldBossAI
|
||||||
{
|
{
|
||||||
public emerald_dragon(Creature creature) : base(creature) { }
|
public emerald_dragon(Creature creature) : base(creature) { }
|
||||||
|
|||||||
Reference in New Issue
Block a user