chore(Core/Misc): Some cleanup (#19970)

* remove weird blanks

* update if

* ) ) to ))

* missed some ) )

* now switch

* .
This commit is contained in:
Kitzunu
2024-09-21 19:34:31 +02:00
committed by GitHub
parent 0ba59c0053
commit 386aea03ee
157 changed files with 1606 additions and 1616 deletions

View File

@@ -181,7 +181,7 @@ class spell_hun_generic_scaling : public AuraScript
int32 modifier = 45;
// xinef: Wild Hunt bonus for stamina
if (AuraEffect* wildHuntEff = GetUnitOwner()->GetDummyAuraEffect(SPELLFAMILY_PET, 3748, EFFECT_0))
if (AuraEffect* wildHuntEff = GetUnitOwner()->GetDummyAuraEffect(SPELLFAMILY_PET, 3748, EFFECT_0))
AddPct(modifier, wildHuntEff->GetAmount());
amount = CalculatePct(std::max<int32>(0, owner->GetStat(Stats(aurEff->GetSpellInfo()->Effects[aurEff->GetEffIndex()].MiscValue))), modifier);

View File

@@ -620,7 +620,7 @@ class spell_item_feast : public SpellScript
{
LocaleConstant loc_idx = player->GetSession()->GetSessionDbLocaleIndex();
switch(GetSpellInfo()->Id)
switch (GetSpellInfo()->Id)
{
case SPELL_GREAT_FEAST:
if (BroadcastText const* bct = sObjectMgr->GetBroadcastText(GREAT_FEAST_BROADCAST_TEXT_ID_PREPARE))

View File

@@ -623,9 +623,9 @@ class spell_q12274_a_fall_from_grace_costume : public SpellScript
void HandleScript(SpellEffIndex /*effIndex*/)
{
if(Unit* target = GetHitUnit())
if (Unit* target = GetHitUnit())
{
if(Player* p = target->ToPlayer())
if (Player* p = target->ToPlayer())
{
p->CastSpell(p, p->getGender() == GENDER_FEMALE ? SPELL_SCARLET_RAVEN_PRIEST_IMAGE_FEMALE : SPELL_SCARLET_RAVEN_PRIEST_IMAGE_MALE, false);
}
@@ -2325,8 +2325,8 @@ class spell_q12919_gymers_throw : public SpellScript
void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if(GetOwner())
if(Player* player = GetOwner()->ToPlayer())
if (GetOwner())
if (Player* player = GetOwner()->ToPlayer())
player->CompleteQuest(QUEST_CROW_TRANSFORM);
}