aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortobmaps <spambot42@yandex.ru>2011-06-02 19:21:10 +0700
committertobmaps <spambot42@yandex.ru>2011-06-02 19:21:10 +0700
commit508f14fa6ccb5f674bbfc8f6f48f395ebe27fd2d (patch)
treeaea41fe80c19d40a779480f4ab241c20490b3ac2 /src
parentd70fd93e41294e8206b8d2d27100138ab79f0bcd (diff)
Core/Spells: cleanup in Blade Barrier code
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Entities/Unit/Unit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 4ff8e80291a..47f8f48788c 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -7974,7 +7974,7 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura,
if (!caster || !damage)
return false;
- //last charge and crit
+ // last charge and crit
if (triggeredByAura->GetCharges() <= 1 && (procEx & PROC_EX_CRITICAL_HIT))
return true; // charge counting (will removed)
@@ -8717,8 +8717,8 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
// Blade Barrier
if (auraSpellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && auraSpellInfo->SpellIconID == 85)
{
- Player * plr = this->ToPlayer();
- if (this->GetTypeId() != TYPEID_PLAYER || !plr || plr->getClass() != CLASS_DEATH_KNIGHT)
+ Player* plr = ToPlayer();
+ if (!plr || plr->getClass() != CLASS_DEATH_KNIGHT)
return false;
if (!plr->IsBaseRuneSlotsOnCooldown(RUNE_BLOOD))