Small cleanup/corrections
--HG-- branch : trunk
This commit is contained in:
@@ -68,7 +68,7 @@ Vaughner, blackmanos, edrinn, Liberate, Shauren, dr.tenma, click, silverice,
|
|||||||
SupaBad, Xanadu, Socolin, Shocker, Silinoron, 0xFuture, xK1, Ramus, menke,
|
SupaBad, Xanadu, Socolin, Shocker, Silinoron, 0xFuture, xK1, Ramus, menke,
|
||||||
wowgargamel, Dark0r, Kierkegaard, Leak, ge0rg, StormByte, joshwhedon,
|
wowgargamel, Dark0r, Kierkegaard, Leak, ge0rg, StormByte, joshwhedon,
|
||||||
BlackCat0110, JuliuSZS, n4rk0, filip.havlicek, m.ax, laviniu, LordJZ, Scazzato88,
|
BlackCat0110, JuliuSZS, n4rk0, filip.havlicek, m.ax, laviniu, LordJZ, Scazzato88,
|
||||||
svannon, jurkovic.nikola, Willian Krueger, Mach, BioHazard, Ille000, Erocoloco,
|
svannon, jurkovic.nikola, Willian Krueger, BioHazard, Ille000, Erocoloco,
|
||||||
terrorbringer, antihrists, Havenard, scarymovie87, D3VIL, FaTe753, PrinceCreed,
|
terrorbringer, antihrists, Havenard, scarymovie87, D3VIL, FaTe753, PrinceCreed,
|
||||||
spgm, Dakeyras, sombre88, 19Maxx83, moriquendu, Ille, beberlescaraber, breakerfly,
|
spgm, Dakeyras, sombre88, 19Maxx83, moriquendu, Ille, breakerfly,
|
||||||
zthoreen, clement.roussel, p.alexej, Ceris, tbaart, Nayre, Kiper, announce, thmarth
|
zthoreen, clement.roussel, p.alexej, Ceris, Nayre, Kiper, announce, thmarth
|
||||||
@@ -430,7 +430,7 @@ void Battleground::Update(uint32 diff)
|
|||||||
{
|
{
|
||||||
// BG Status packet
|
// BG Status packet
|
||||||
WorldPacket status;
|
WorldPacket status;
|
||||||
BattlegroundQueueTypeId bgQueueTypeId = sBattlegroundMgr.BGQueueTypeId(m_eTypeID, GetArenaType());
|
BattlegroundQueueTypeId bgQueueTypeId = sBattlegroundMgr.BGQueueTypeId(m_TypeID, GetArenaType());
|
||||||
uint32 queueSlot = plr->GetBattlegroundQueueIndex(bgQueueTypeId);
|
uint32 queueSlot = plr->GetBattlegroundQueueIndex(bgQueueTypeId);
|
||||||
sBattlegroundMgr.BuildBattlegroundStatusPacket(&status, this, queueSlot, STATUS_IN_PROGRESS, 0, GetStartTime(), GetArenaType());
|
sBattlegroundMgr.BuildBattlegroundStatusPacket(&status, this, queueSlot, STATUS_IN_PROGRESS, 0, GetStartTime(), GetArenaType());
|
||||||
plr->GetSession()->SendPacket(&status);
|
plr->GetSession()->SendPacket(&status);
|
||||||
|
|||||||
@@ -3535,13 +3535,13 @@ void Unit::FinishSpell(CurrentSpellTypes spellType, bool ok /*= true*/)
|
|||||||
spell->finish(ok);
|
spell->finish(ok);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Unit::IsNonMeleeSpellCasted(bool withDelayed, bool skipChanneled, bool skipAutorepeat, bool isAutoshoot, bool checkInstant) const
|
bool Unit::IsNonMeleeSpellCasted(bool withDelayed, bool skipChanneled, bool skipAutorepeat, bool isAutoshoot, bool skipInstant) const
|
||||||
{
|
{
|
||||||
// We don't do loop here to explicitly show that melee spell is excluded.
|
// We don't do loop here to explicitly show that melee spell is excluded.
|
||||||
// Maybe later some special spells will be excluded too.
|
// Maybe later some special spells will be excluded too.
|
||||||
|
|
||||||
// if checkInstant then instant spells shouldn't count as being casted
|
// if checkInstant then instant spells shouldn't count as being casted
|
||||||
if (checkInstant && m_currentSpells[CURRENT_GENERIC_SPELL] && !m_currentSpells[CURRENT_GENERIC_SPELL]->GetCastTime())
|
if (!skipInstant && m_currentSpells[CURRENT_GENERIC_SPELL] && !m_currentSpells[CURRENT_GENERIC_SPELL]->GetCastTime())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// generic spells are casted when they are not finished and not delayed
|
// generic spells are casted when they are not finished and not delayed
|
||||||
|
|||||||
@@ -1694,7 +1694,7 @@ class Unit : public WorldObject
|
|||||||
// set withDelayed to true to account delayed spells as casted
|
// set withDelayed to true to account delayed spells as casted
|
||||||
// delayed+channeled spells are always accounted as casted
|
// delayed+channeled spells are always accounted as casted
|
||||||
// we can skip channeled or delayed checks using flags
|
// we can skip channeled or delayed checks using flags
|
||||||
bool IsNonMeleeSpellCasted(bool withDelayed, bool skipChanneled = false, bool skipAutorepeat = false, bool isAutoshoot = false, bool checkInstant = false) const;
|
bool IsNonMeleeSpellCasted(bool withDelayed, bool skipChanneled = false, bool skipAutorepeat = false, bool isAutoshoot = false, bool skipInstant = true) const;
|
||||||
|
|
||||||
// set withDelayed to true to interrupt delayed spells too
|
// set withDelayed to true to interrupt delayed spells too
|
||||||
// delayed+channeled spells are always interrupted
|
// delayed+channeled spells are always interrupted
|
||||||
|
|||||||
@@ -5579,7 +5579,7 @@ void AuraEffect::HandleAuraDummy(AuraApplication const * aurApp, uint8 mode, boo
|
|||||||
if (target->GetTypeId() != TYPEID_PLAYER)
|
if (target->GetTypeId() != TYPEID_PLAYER)
|
||||||
return;
|
return;
|
||||||
// ..while they are casting
|
// ..while they are casting
|
||||||
if (target->IsNonMeleeSpellCasted(false, false, true, false, true))
|
if (target->IsNonMeleeSpellCasted(false, false, true, false, false))
|
||||||
if (AuraEffect * aurEff = caster->GetAuraEffect(SPELL_AURA_ADD_FLAT_MODIFIER, SPELLFAMILY_WARRIOR, 2775, 0))
|
if (AuraEffect * aurEff = caster->GetAuraEffect(SPELL_AURA_ADD_FLAT_MODIFIER, SPELLFAMILY_WARRIOR, 2775, 0))
|
||||||
switch (aurEff->GetId())
|
switch (aurEff->GetId())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user