mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 06:36:24 +00:00
chore(Core/Misc): Some cleanup (#19970)
* remove weird blanks * update if * ) ) to )) * missed some ) ) * now switch * .
This commit is contained in:
@@ -1058,7 +1058,7 @@ float AuraEffect::CalcPeriodicCritChance(Unit const* caster, Unit const* target)
|
||||
}
|
||||
}
|
||||
|
||||
switch(GetSpellInfo()->SpellFamilyName)
|
||||
switch (GetSpellInfo()->SpellFamilyName)
|
||||
{
|
||||
// Rupture - since 3.3.3 can crit
|
||||
case SPELLFAMILY_ROGUE:
|
||||
@@ -5603,7 +5603,7 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
|
||||
{
|
||||
if (Battleground* bg = target->ToPlayer()->GetBattleground())
|
||||
bg->RemovePlayerFromResurrectQueue(target->ToPlayer());
|
||||
if(Battlefield* bf = sBattlefieldMgr->GetBattlefieldToZoneId(target->GetZoneId()))
|
||||
if (Battlefield* bf = sBattlefieldMgr->GetBattlefieldToZoneId(target->GetZoneId()))
|
||||
bf->RemovePlayerFromResurrectQueue(target->GetGUID());
|
||||
}
|
||||
break;
|
||||
@@ -5623,7 +5623,7 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
|
||||
// Halls of Lightning, Arc Lightning
|
||||
case 52921:
|
||||
{
|
||||
if( aurApp->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE )
|
||||
if (aurApp->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE )
|
||||
return;
|
||||
|
||||
Player* player = nullptr;
|
||||
@@ -5631,7 +5631,7 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
|
||||
Acore::PlayerSearcher<Acore::AnyPlayerInObjectRangeCheck> searcher(target, player, checker);
|
||||
Cell::VisitWorldObjects(target, searcher, 10.0f);
|
||||
|
||||
if( player && player->GetGUID() != target->GetGUID() )
|
||||
if (player && player->GetGUID() != target->GetGUID())
|
||||
target->CastSpell(player, 52921, true);
|
||||
|
||||
return;
|
||||
@@ -6488,7 +6488,7 @@ void AuraEffect::HandlePeriodicTriggerSpellAuraTick(Unit* target, Unit* caster)
|
||||
{
|
||||
if (caster)
|
||||
if (Unit* victim = caster->GetVictim())
|
||||
if(victim->GetDistance(caster) < 45.0f)
|
||||
if (victim->GetDistance(caster) < 45.0f)
|
||||
{
|
||||
target = victim;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user