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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
157 changed files with 1606 additions and 1616 deletions

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);
}