Misc fixes
This commit is contained in:
@@ -2611,6 +2611,9 @@ namespace Game.Achievements
|
|||||||
_criteriaTreeByCriteria.Add(pair.Value.Entry.CriteriaID, pair.Value);
|
_criteriaTreeByCriteria.Add(pair.Value.Entry.CriteriaID, pair.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (var i = 0; i < (int)CriteriaCondition.Max; ++i)
|
||||||
|
_criteriasByFailEvent[i] = new MultiMap<int, Criteria>();
|
||||||
|
|
||||||
// Load criteria
|
// Load criteria
|
||||||
uint criterias = 0;
|
uint criterias = 0;
|
||||||
uint guildCriterias = 0;
|
uint guildCriterias = 0;
|
||||||
|
|||||||
@@ -1696,12 +1696,13 @@ namespace Game.Entities
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (spell.Value.State == PlayerSpellState.Removed)
|
if (spell.Value.State == PlayerSpellState.Removed)
|
||||||
m_spells.Remove(spell.Key);
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
spell.Value.State = PlayerSpellState.Unchanged;
|
m_spells.Remove(spell.Key);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (spell.Value.State != PlayerSpellState.Temporary)
|
||||||
|
spell.Value.State = PlayerSpellState.Unchanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void _SaveAuras(SQLTransaction trans)
|
void _SaveAuras(SQLTransaction trans)
|
||||||
|
|||||||
@@ -3912,11 +3912,12 @@ namespace Game.Entities
|
|||||||
pItem.RemoveFromWorld();
|
pItem.RemoveFromWorld();
|
||||||
if (del)
|
if (del)
|
||||||
{
|
{
|
||||||
pItem.SetState(ItemUpdateState.Removed, this);
|
|
||||||
ItemTemplate itemTemplate = pItem.GetTemplate();
|
ItemTemplate itemTemplate = pItem.GetTemplate();
|
||||||
if (itemTemplate != null)
|
if (itemTemplate != null)
|
||||||
if (itemTemplate.GetFlags().HasAnyFlag(ItemFlags.HasLoot))
|
if (itemTemplate.GetFlags().HasAnyFlag(ItemFlags.HasLoot))
|
||||||
Global.LootItemStorage.RemoveStoredLootForContainer(pItem.GetGUID().GetCounter());
|
Global.LootItemStorage.RemoveStoredLootForContainer(pItem.GetGUID().GetCounter());
|
||||||
|
|
||||||
|
pItem.SetState(ItemUpdateState.Removed, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3417,6 +3417,7 @@ namespace Game.Spells
|
|||||||
case AuraType.ModStalked:
|
case AuraType.ModStalked:
|
||||||
case AuraType.PeriodicDamagePercent:
|
case AuraType.PeriodicDamagePercent:
|
||||||
case AuraType.PreventResurrection:
|
case AuraType.PreventResurrection:
|
||||||
|
case AuraType.Empathy:
|
||||||
return false;
|
return false;
|
||||||
case AuraType.PeriodicDamage: // used in positive spells also.
|
case AuraType.PeriodicDamage: // used in positive spells also.
|
||||||
// part of negative spell if casted at self (prevent cancel)
|
// part of negative spell if casted at self (prevent cancel)
|
||||||
|
|||||||
Reference in New Issue
Block a user