Skip to content

Commit

Permalink
[7591] Implement 52375 and ranks.
Browse files Browse the repository at this point in the history
(cherry picked from commit f0fb07c)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
charlie2025 authored and VladimirMangos committed Mar 31, 2009
1 parent c1a2f53 commit f021c9a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions src/game/SpellEffects.cpp
Expand Up @@ -1745,6 +1745,28 @@ void Spell::EffectDummy(uint32 i)
return;
}
break;
case SPELLFAMILY_DEATHKNIGHT:
// Death Coil
if(m_spellInfo->SpellFamilyFlags & 0x002000LL)
{
if(m_caster->IsFriendlyTo(unitTarget))
{
if(unitTarget->GetCreatureType() != CREATURE_TYPE_UNDEAD)
return;

// first rank have special multiplier
int32 bp = damage * 1.5f;
m_caster->CastCustomSpell(unitTarget,47633,&bp,NULL,NULL,true);
}
else
{
// first rank have special multiplier
int32 bp = damage;
m_caster->CastCustomSpell(unitTarget,47632,&bp,NULL,NULL,true);
}
return;
}
break;
}

// pet auras
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7590"
#define REVISION_NR "7591"
#endif // __REVISION_NR_H__

0 comments on commit f021c9a

Please sign in to comment.