mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9844] Fix some whitespace errors.
Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
parent
ec0141261a
commit
68abd76c97
20 changed files with 88 additions and 88 deletions
|
|
@ -3998,7 +3998,7 @@ void Aura::HandleModStealth(bool apply, bool Real)
|
|||
if (apply)
|
||||
{
|
||||
// drop flag at stealth in bg
|
||||
m_target->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_IMMUNE_OR_LOST_SELECTION);
|
||||
m_target->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_IMMUNE_OR_LOST_SELECTION);
|
||||
|
||||
// only at real aura add
|
||||
if (Real)
|
||||
|
|
@ -4082,7 +4082,7 @@ void Aura::HandleInvisibility(bool apply, bool Real)
|
|||
{
|
||||
m_target->m_invisibilityMask |= (1 << m_modifier.m_miscvalue);
|
||||
|
||||
m_target->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_IMMUNE_OR_LOST_SELECTION);
|
||||
m_target->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_IMMUNE_OR_LOST_SELECTION);
|
||||
|
||||
if(Real && m_target->GetTypeId()==TYPEID_PLAYER)
|
||||
{
|
||||
|
|
@ -5001,7 +5001,7 @@ void Aura::HandlePeriodicDamagePCT(bool apply, bool /*Real*/)
|
|||
void Aura::HandlePeriodicLeech(bool apply, bool /*Real*/)
|
||||
{
|
||||
m_isPeriodic = apply;
|
||||
|
||||
|
||||
// For prevent double apply bonuses
|
||||
bool loading = (m_target->GetTypeId() == TYPEID_PLAYER && ((Player*)m_target)->GetSession()->PlayerLoading());
|
||||
|
||||
|
|
@ -6898,7 +6898,7 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real)
|
|||
//Borrowed Time
|
||||
Unit::AuraList const& borrowedTime = caster->GetAurasByType(SPELL_AURA_DUMMY);
|
||||
for(Unit::AuraList::const_iterator itr = borrowedTime.begin(); itr != borrowedTime.end(); ++itr)
|
||||
{
|
||||
{
|
||||
SpellEntry const* i_spell = (*itr)->GetSpellProto();
|
||||
if(i_spell->SpellFamilyName==SPELLFAMILY_PRIEST && i_spell->SpellIconID == 2899 && i_spell->EffectMiscValue[(*itr)->GetEffIndex()] == 24)
|
||||
{
|
||||
|
|
@ -7082,7 +7082,7 @@ void Aura::PeriodicTick()
|
|||
else
|
||||
pdamage = uint32(m_target->GetMaxHealth()*amount/100);
|
||||
|
||||
|
||||
|
||||
// SpellDamageBonus for magic spells
|
||||
if(GetSpellProto()->DmgClass == SPELL_DAMAGE_CLASS_NONE || GetSpellProto()->DmgClass == SPELL_DAMAGE_CLASS_MAGIC)
|
||||
pdamage = m_target->SpellDamageBonusTaken(pCaster, GetSpellProto(), pdamage, DOT, GetStackAmount());
|
||||
|
|
@ -8304,19 +8304,19 @@ void Aura::HandleAuraModAllCritChance(bool apply, bool Real)
|
|||
void Aura::HandleAllowOnlyAbility(bool apply, bool Real)
|
||||
{
|
||||
if(!Real)
|
||||
return;
|
||||
return;
|
||||
|
||||
if(apply)
|
||||
{
|
||||
m_target->setAttackTimer(BASE_ATTACK,m_duration);
|
||||
m_target->setAttackTimer(RANGED_ATTACK,m_duration);
|
||||
m_target->setAttackTimer(OFF_ATTACK,m_duration);
|
||||
m_target->setAttackTimer(BASE_ATTACK,m_duration);
|
||||
m_target->setAttackTimer(RANGED_ATTACK,m_duration);
|
||||
m_target->setAttackTimer(OFF_ATTACK,m_duration);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_target->resetAttackTimer(BASE_ATTACK);
|
||||
m_target->resetAttackTimer(RANGED_ATTACK);
|
||||
m_target->resetAttackTimer(OFF_ATTACK);
|
||||
m_target->resetAttackTimer(BASE_ATTACK);
|
||||
m_target->resetAttackTimer(RANGED_ATTACK);
|
||||
m_target->resetAttackTimer(OFF_ATTACK);
|
||||
}
|
||||
|
||||
m_target->UpdateDamagePhysical(BASE_ATTACK);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue