mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
chore(Core/Misc): Some cleanup (#19970)
* remove weird blanks * update if * ) ) to )) * missed some ) ) * now switch * .
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user