Core/Chat: move chat link validation code into separate classes and improve some validation logic

Core/Misc: fix non-pch build
This commit is contained in:
Azazel
2011-04-27 16:22:42 +06:00
parent d42c048818
commit 791130f6fa
7 changed files with 903 additions and 616 deletions
+3
View File
@@ -6910,6 +6910,9 @@ void Spell::SummonGuardian(uint32 i, uint32 entry, SummonPropertiesEntry const *
if (summon->HasUnitTypeMask(UNIT_MASK_GUARDIAN))
((Guardian*)summon)->InitStatsForLevel(level);
if (properties && properties->Category == SUMMON_CATEGORY_ALLY)
summon->setFaction(caster->getFaction());
summon->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id);
if (summon->HasUnitTypeMask(UNIT_MASK_MINION) && m_targets.HasDst())
((Minion*)summon)->SetFollowAngle(m_caster->GetAngle(summon));