mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
chore(Core/Misc): Some cleanup (#19970)
* remove weird blanks * update if * ) ) to )) * missed some ) ) * now switch * .
This commit is contained in:
@@ -681,16 +681,16 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
|
||||
// Trial of the Champion, Trample
|
||||
case 67866:
|
||||
{
|
||||
if( unitTarget && !unitTarget->IsVehicle() && !unitTarget->GetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID) )
|
||||
if (unitTarget && !unitTarget->IsVehicle() && !unitTarget->GetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID))
|
||||
unitTarget->CastSpell(unitTarget, 67867, false);
|
||||
return;
|
||||
}
|
||||
// Trial of the Champion, Hammer of the Righteous
|
||||
case 66867:
|
||||
{
|
||||
if( !unitTarget )
|
||||
if (!unitTarget)
|
||||
return;
|
||||
if( unitTarget->HasAura(66940) )
|
||||
if (unitTarget->HasAura(66940))
|
||||
m_caster->CastSpell(unitTarget, 66903, true);
|
||||
else
|
||||
m_caster->CastSpell(unitTarget, 66904, true);
|
||||
@@ -699,12 +699,12 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
|
||||
case 17731:
|
||||
case 69294:
|
||||
{
|
||||
if( !gameObjTarget || gameObjTarget->GetRespawnTime() > GameTime::GetGameTime().count() )
|
||||
if (!gameObjTarget || gameObjTarget->GetRespawnTime() > GameTime::GetGameTime().count())
|
||||
return;
|
||||
|
||||
gameObjTarget->SetRespawnTime(10);
|
||||
gameObjTarget->SendCustomAnim(gameObjTarget->GetGoAnimProgress());
|
||||
if( Creature* trigger = gameObjTarget->SummonCreature(12758, *gameObjTarget, TEMPSUMMON_TIMED_DESPAWN, 1000) )
|
||||
if (Creature* trigger = gameObjTarget->SummonCreature(12758, *gameObjTarget, TEMPSUMMON_TIMED_DESPAWN, 1000))
|
||||
trigger->CastSpell(trigger, 17731, false);
|
||||
|
||||
return;
|
||||
@@ -712,7 +712,7 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
|
||||
// HoL, Arc Weld
|
||||
case 59086:
|
||||
{
|
||||
if( m_caster && m_caster->IsPlayer() && m_caster->ToPlayer()->isMoving() )
|
||||
if (m_caster && m_caster->IsPlayer() && m_caster->ToPlayer()->isMoving())
|
||||
m_caster->CastSpell(m_caster, 59097, true);
|
||||
|
||||
return;
|
||||
@@ -753,7 +753,7 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
|
||||
break;
|
||||
case SPELLFAMILY_ROGUE:
|
||||
// Hunger for Blood
|
||||
if( m_spellInfo->Id == 51662 )
|
||||
if (m_spellInfo->Id == 51662)
|
||||
{
|
||||
m_caster->CastSpell(m_caster, 63848, true);
|
||||
return;
|
||||
@@ -3126,7 +3126,7 @@ void Spell::EffectSummonPet(SpellEffIndex effIndex)
|
||||
uint32 petentry = m_spellInfo->Effects[effIndex].MiscValue;
|
||||
int32 duration = m_spellInfo->GetDuration();
|
||||
|
||||
if(Player* modOwner = m_originalCaster->GetSpellModOwner())
|
||||
if (Player* modOwner = m_originalCaster->GetSpellModOwner())
|
||||
modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_DURATION, duration);
|
||||
|
||||
Player* owner = m_originalCaster->ToPlayer();
|
||||
@@ -3448,7 +3448,7 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
|
||||
case SPELLFAMILY_HUNTER:
|
||||
{
|
||||
// Kill Shot
|
||||
if( m_spellInfo->SpellFamilyFlags[1] & 0x800000 )
|
||||
if (m_spellInfo->SpellFamilyFlags[1] & 0x800000)
|
||||
{
|
||||
spell_bonus += int32(m_caster->GetTotalAttackPowerValue(RANGED_ATTACK) * 0.4f);
|
||||
}
|
||||
@@ -3469,7 +3469,7 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
|
||||
{
|
||||
float disease_amt = m_spellInfo->Effects[EFFECT_2].CalcValue();
|
||||
//Death Knight T8 Melee 4P Bonus
|
||||
if (AuraEffect* aurEff = m_caster->GetAuraEffectDummy(64736) )
|
||||
if (AuraEffect* aurEff = m_caster->GetAuraEffectDummy(64736))
|
||||
AddPct(disease_amt, aurEff->GetAmount());
|
||||
|
||||
AddPct(totalDamagePercentMod, disease_amt * unitTarget->GetDiseasesByCaster(m_caster->GetGUID()) / 2.0f);
|
||||
@@ -3501,7 +3501,7 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
|
||||
|
||||
float disease_amt = m_spellInfo->Effects[EFFECT_2].CalcValue();
|
||||
//Death Knight T8 Melee 4P Bonus
|
||||
if (AuraEffect* aurEff = m_caster->GetAuraEffectDummy(64736) )
|
||||
if (AuraEffect* aurEff = m_caster->GetAuraEffectDummy(64736))
|
||||
AddPct(disease_amt, aurEff->GetAmount());
|
||||
|
||||
AddPct(totalDamagePercentMod, disease_amt * unitTarget->GetDiseasesByCaster(m_caster->GetGUID(), consumeDiseases) / 2.0f);
|
||||
@@ -3520,7 +3520,7 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
|
||||
{
|
||||
float disease_amt = m_spellInfo->Effects[EFFECT_2].CalcValue();
|
||||
//Death Knight T8 Melee 4P Bonus
|
||||
if (AuraEffect* aurEff = m_caster->GetAuraEffectDummy(64736) )
|
||||
if (AuraEffect* aurEff = m_caster->GetAuraEffectDummy(64736))
|
||||
AddPct(disease_amt, aurEff->GetAmount());
|
||||
|
||||
AddPct(totalDamagePercentMod, disease_amt * unitTarget->GetDiseasesByCaster(m_caster->GetGUID()));
|
||||
@@ -3945,7 +3945,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
||||
}
|
||||
case 61263: // for item Intravenous Healing Potion (44698)
|
||||
{
|
||||
if( !m_caster || !unitTarget )
|
||||
if (!m_caster || !unitTarget)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(m_caster, 61267, true);
|
||||
@@ -3957,16 +3957,16 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
||||
}
|
||||
case SPELLFAMILY_ROGUE:
|
||||
{
|
||||
switch( m_spellInfo->Id )
|
||||
switch (m_spellInfo->Id)
|
||||
{
|
||||
// Master of Subtlety
|
||||
case 31666:
|
||||
{
|
||||
if( !unitTarget )
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
Aura* mos = unitTarget->GetAura(31665);
|
||||
if( mos )
|
||||
if (mos)
|
||||
{
|
||||
mos->SetMaxDuration(6000);
|
||||
mos->SetDuration(6000, true);
|
||||
@@ -3977,11 +3977,11 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
||||
// Overkill
|
||||
case 58428:
|
||||
{
|
||||
if( !unitTarget )
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
Aura* overkill = unitTarget->GetAura(58427);
|
||||
if( overkill )
|
||||
if (overkill)
|
||||
{
|
||||
overkill->SetMaxDuration(20000);
|
||||
overkill->SetDuration(20000, true);
|
||||
|
||||
Reference in New Issue
Block a user