mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-18 05:49:41 -04:00
*Fix several typos.
--HG-- branch : trunk
This commit is contained in:
@@ -220,7 +220,7 @@ struct TRINITY_DLL_DECL mob_erekem_guardAI : public ScriptedAI
|
||||
|
||||
if (uiLightningBoltTimer < diff)
|
||||
{
|
||||
if (pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
|
||||
DoCast(pTarget, SPELL_LIGHTNING_BOLT);
|
||||
uiLightningBoltTimer = urand(18000,24000);
|
||||
} else uiLightningBoltTimer -= diff;
|
||||
|
||||
@@ -67,7 +67,7 @@ struct TRINITY_DLL_DECL boss_moraggAI : public ScriptedAI
|
||||
|
||||
if (uiOpticLinkTimer < diff)
|
||||
{
|
||||
if (pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
|
||||
DoCast(pTarget,SPELL_OPTIC_LINK);
|
||||
uiOpticLinkTimer = 15000;
|
||||
} else uiOpticLinkTimer -= diff;
|
||||
|
||||
+3
-2
@@ -22104,8 +22104,9 @@ void Player::ActivateSpec(uint8 spec)
|
||||
uint32 glyph = m_Glyphs[m_activeSpec][slot];
|
||||
|
||||
// apply primary glyph
|
||||
if (glyph && GlyphPropertiesEntry const *gp = sGlyphPropertiesStore.LookupEntry(glyph))
|
||||
CastSpell(this, gp->SpellId, true);
|
||||
if (glyph)
|
||||
if (GlyphPropertiesEntry const *gp = sGlyphPropertiesStore.LookupEntry(glyph))
|
||||
CastSpell(this, gp->SpellId, true);
|
||||
|
||||
SetGlyph(slot, glyph);
|
||||
}
|
||||
|
||||
+1
-1
@@ -4138,7 +4138,7 @@ void Unit::RemoveAllAuras(uint64 casterGUID, Aura * except /*=NULL*/, bool negat
|
||||
AuraMap::iterator iter = m_Auras.begin();
|
||||
while (!m_Auras.empty())
|
||||
{
|
||||
Aura * aur = (*iter)->GetParentAura();
|
||||
Aura * aur = (*iter).second;
|
||||
if (aur != except && (!casterGUID || aur->GetCasterGUID()==casterGUID)
|
||||
&& ((negative && !aur->IsPositive()) || (positive && aur->IsPositive())))
|
||||
RemoveAura(aur);
|
||||
|
||||
Reference in New Issue
Block a user